Modal not hiding when setState updates are done in try / catch and the response is quick #28753
Labels
Component: Modal
Needs: Author Feedback
Needs: Environment Info
Please run `react-native info` and edit your issue with that command's output.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Hi, I would like to reopen #10417
I am having this problem for a while and the only solution that worked for me was to create a timeout big enough that even in slow devices it works.
When using try/catch, if the work is finished quickly (quick api responses for instance), when we setState({showLoader: false}) it won't remove the Modal and we will have to close and run the app again to clear it.
I am going to use the same example as the issue link mentioned
The text was updated successfully, but these errors were encountered: