mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: With this diff (and maybe other coming in the future), we are enforcing a model where Fabric Core actively/architecturally prevents `jsi::Object` to overlive `UIManager`. That never was a promise that but I think it's achievable; it should help to eliminate the whole class of possible crashes (application layer still must ensure that Scheduler is deallocated before `jsi::Runtime`). Clearing all pointers to `ShadowNode`s in `MountingCoordinator` prevents from extending the lifetime of ShadowNodes stored inside revoked `MountingCoordinator` (the lifetime of `MountingCoordinator` is up to application layer). That should help prevent crashes (not all of them!) caused by `jsi::Object`s overliving `jsi::Runtime`. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D18333708 fbshipit-source-id: 4391998b8f805563cfaff834fc56e85b98bc4d68