Skip to content

Commit 22b55d6

Browse files
rubennortefacebook-github-bot
authored andcommitted
Correctly batch reportMount calls
Summary: 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. Differential Revision: D71387374
1 parent 2259db6 commit 22b55d6

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)