Skip to content

Commit 4e4b9ba

Browse files
rubennortefabriziocucci
authored andcommitted
Correctly batch reportMount calls (#50090)
Summary: Pull Request resolved: #50090 Changelog: [internal] I refactored `FabricUIManager` in D54547194 / #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 4f838c2 commit 4e4b9ba

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)