We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43ad2c0 commit 5d65794Copy full SHA for 5d65794
packages/react-native/ReactCxxPlatform/react/runtime/ReactHost.cpp
@@ -533,7 +533,9 @@ std::unordered_set<SurfaceId> ReactHost::getRunningSurfaces() const noexcept {
533
534
void ReactHost::runOnScheduler(
535
std::function<void(Scheduler& scheduler)>&& task) const {
536
- task(*scheduler_);
+ if (!isReloadingReactInstance_) {
537
+ task(*scheduler_);
538
+ }
539
}
540
541
void ReactHost::runOnRuntimeScheduler(
0 commit comments