question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fetch request freeze app

See original GitHub issue

Hi everyone,

I have some problem in my app with the requests. My problem is the following:

If I go in a view that load a list of elements, when the request is awaiting and my spinner is shown, the app is totally freeze and the clicking event on the back button will be only triggered when the request is done.

I use InteractionManager everywhere in my app, my Flux implementation is Alt.js and my fetch calls are done in async.

I also try to use xhr, and abort the request when back button is clicked, but same problem happened, because the event is always triggered at the end of the request.

If anyone got the same issue and find a way to handle it, please answer! 😃

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
stovmascriptcommented, Oct 19, 2016

Hey, I have the same problem. Sadly, I haven’t figured out how to fix it.

I am using NavigationExperimental and also the InteractionManager for transitioning between components which need to prefetch data. But the freezing is happening even when I just scroll a ListView which is fetching more items on the same screen. When the fetch is in progress I can’t open the drawer menu I have in my layout - it opens right after the fetch completes.

I’m using redux and redux-thunk to make the async fetch.

@magrinj Have you had any progress with this?

0reactions
hramoscommented, Mar 31, 2017

Hey, thanks for reporting this issue!

It looks like your description is missing some necessary information. Can you please add all the details specified in the template? This is necessary for people to be able to understand and reproduce the issue being reported.

I am going to close this, but feel free to open a new issue with the additional information provided. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application freeze while executing fetch request in iOS
Because you are performing operation in main thread, you need to do this task in background thread. For this you can use NSOperationQueue ......
Read more >
Synchronous and asynchronous requests - Web APIs | MDN
Synchronous requests block the execution of code which causes "freezing" on the screen and an unresponsive user experience.
Read more >
Xcode 11 hangs while attaching debugger to ios process
1. Quit Xcode. 2. Open the Mac desktop application Terminal.app. 3. Execute command "rm -rf ~/Library/Developer/Xcode". 4. Open Xcode.
Read more >
Freeze Support Center | Credit Freeze FAQs - TransUnion
I received a credit card application in the mail for my child; how did this happen? Can I add a fraud alert on...
Read more >
Security Freeze - LexisNexis Risk Solutions Consumer ...
Consumer Portal. Request a Security Freeze. Freeze Access to Your Credit File. Applying a security freeze prohibits LexisNexis Risk Solutions and SageStream ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found