New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocks the entire UI #1902
Comments
I've been going back and forth with |
That might be some environmental issue with your RN setup. You’d have to share your repoaitory so I could take a look at it, without that it’s hard for me to determine what might be the problem |
Okay, can't share my repo but in that case: Can you confirm that what I have here will run the watchers in parallel and nonblocking? Is the usage of |
Yes.
Depends on the use case, I'm generally in favour of using plain fork. They both are pretty similar, only difference is how they propagate errors & cancellations (spawn breaks the chain of propagation, so in a case of error thrown inside it won't kill its parent, but that's not necessarily a good thing because uncaught errors can have unpredictable outcomes for your app - so IMHO it's better to let the app crash and fix the error ASAP) One extra thing - in v1 you should use |
Well, that's part of the problem at least. Delay couldn't be found. changed
to
Weirdly, no errors were showing at all.. |
This has to be some problem with ur setup, we provide console warns (or erros? Not sure) for this exact problem as this has changed betwwen v0.x and v1. Has your issue been resolved completely by fixing this? |
I've been fiddling and it seems that indeed: A) I get not console warnings or errors and B) if I fix these errors the UI doesn't hang anymore ;) I'll double-check my setup. Note, when I attach a debugger, I do hit the exceptions. But without a debugger attached, I don't get warnings or errors in the Android emulator. Could be because I'm using |
Thats right, To have more control over debugging. It might be advisable to do your own try/catch inside the spawned process in which you can log the error. Nice to see you're into React/Redux/Javascript nowadays! |
Have you been able to fix your issue? If not can you provide more info that could allow helping you to resolve it? |
Thank you for asking. I didn't get any errors when the saga had a JavaScript error. Instead, the app slowed down or was hanging. I fixed the errors in the saga, but haven't found a way to show the JS error from the saga itself. |
@DianaKoenraadt I had the same experience, the rootError didn't throw - the app's UI just froze. Oddly gestures still worked but nothing else. Couldn't find any way to make it throw the error in any way I could see, or report on it |
@jonathanstiansen I suffer from the same issue you described, and it's very difficult to figure out where the problem is coming from. |
Steps to reproduce
Description of the bug/issue
No matter what I do, my UI totally freezes up.
Steps to reproduce the bug/issue
See above.
Actual results
UI freezes up completely.
The Expected results
For starters, just log something every second without freezing up the UI.
Environment information
The text was updated successfully, but these errors were encountered: