Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix app crashing when reloads overlap (#46416)
Summary: Regarding the [issue](#44755) where the app sometimes crashes due to race condition when two reloads overlap in unfortunate way. This PR fixes it in some way by introducing throttling on reload command. For now I set it to 700ms as I was still able to reproduce it on 500-550ms for provided repro in the issue. The problem may still happen for bigger apps where reload may take more time to finish. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [GENERAL] [FIXED] - throttle reload command Pull Request resolved: #46416 Test Plan: I've tested on provided repro and a smaller app trying to brake it. Reviewed By: huntie Differential Revision: D62847076 Pulled By: cipolleschi fbshipit-source-id: 6471f792d6b692e87e3e98a699443a88c6ef43cd
- Loading branch information