Skip to content

Commit e4d51cd

Browse files
rubennortefacebook-github-bot
authored andcommitted
Correctly batch reportMount calls (facebook#50090)
Summary: Pull Request resolved: facebook#50090 Changelog: [internal] I refactored `FabricUIManager` in D54547194 / facebook#43337 and accidentally removed setting this flag to avoid scheduling redundant tasks in the UI thread to report mount. This fixes it. Reviewed By: javache Differential Revision: D71387374 fbshipit-source-id: cad8a3ead2434738325560902cbab817e5d5dde7
1 parent b7e046e commit e4d51cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,8 @@ public void didMountItems(@Nullable List<MountItem> mountItems) {
12601260
}
12611261

12621262
if (!mMountNotificationScheduled && !mMountedSurfaceIds.isEmpty()) {
1263+
mMountNotificationScheduled = true;
1264+
12631265
// Notify mount when the effects are visible and prevent mount hooks to
12641266
// delay paint.
12651267
UiThreadUtil.getUiThreadHandler()

0 commit comments

Comments
 (0)