mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
83f8d13a99
Summary: Previously, the `_scheduler` method in `RCTSurfacePresenter` was implemented as a lazy getter. The only problem with that is that Scheduler instance might be (re)created in the middle of the hot-reloading process (e.g. external request to relayout some Surface might trigger that). Since it does not make any sense to create an empty Scheduler during the reloading process, now the Scheduler creation only happens in constructor and right after the VM is reloaded. Reviewed By: JoshuaGross Differential Revision: D17299441 fbshipit-source-id: 273451bbb03e8cdf532131adfdf3bc60c34e997e