Skip to content

Commit eb8c1c3

Browse files
rubennortereact-native-bot
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 5861f7e commit eb8c1c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,8 @@ public void didMountItems(@Nullable List<MountItem> mountItems) {
12561256
}
12571257

12581258
if (!mMountNotificationScheduled && !mMountedSurfaceIds.isEmpty()) {
1259+
mMountNotificationScheduled = true;
1260+
12591261
// Notify mount when the effects are visible and prevent mount hooks to
12601262
// delay paint.
12611263
UiThreadUtil.getUiThreadHandler()

0 commit comments

Comments
 (0)