Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent Fusebox infra crash if RCTBridge is dealloc'ed off the main q…
…ueue (#44877) Summary: Pull Request resolved: #44877 Changelog: [Internal] We're seeing a sporadic iOS crash that suggests `[RCTBridge dealloc]` is being called off the main queue (despite a comment suggesting it shouldn't be). This exposes a race condition between destroying the `HostTarget` and attempting to unregister the instance+runtime from it . Here we use `RCTExecuteOnMainQueue` to make sure the `HostTarget` destruction is always sequenced after the `unregisterFromInspector()` call. Reviewed By: huntie Differential Revision: D58415684
- Loading branch information