fetch request freeze app
See original GitHub issueHi 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:
- Created 7 years ago
- Reactions:5
- Comments:10 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey, I have the same problem. Sadly, I haven’t figured out how to fix it.
I am using
NavigationExperimental
and also theInteractionManager
for transitioning between components which need to prefetch data. But the freezing is happening even when I just scroll aListView
which isfetch
ing 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
andredux-thunk
to make the async fetch.@magrinj Have you had any progress with this?
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!