mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fabric: Fixed incorrect SchedulerToolbox initialization in RCTSurfacePresenter
Summary: We have to use a getter instead of an ivar to enable lazy initialization of ContextContainer. Reviewed By: mdvacca Differential Revision: D15731877 fbshipit-source-id: eb4d0e70c337026a91cb12a3eb26ed4d94f39f9f
This commit is contained in:
committed by
Facebook Github Bot
parent
6236798a3f
commit
47a17fb69e
@@ -197,7 +197,7 @@ using namespace facebook::react;
|
||||
auto runtimeExecutor = [self _runtimeExecutor];
|
||||
|
||||
auto toolbox = SchedulerToolbox{};
|
||||
toolbox.contextContainer = _contextContainer;
|
||||
toolbox.contextContainer = self.contextContainer;
|
||||
toolbox.componentRegistryFactory = componentRegistryFactory;
|
||||
toolbox.runtimeExecutor = runtimeExecutor;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user