You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8573f91
Browse filesBrowse the repository at this point in the historyBrowse files
Pull model: test the dispatch order the pull path keeps
./gradlew :packages:react-native:ReactAndroid:testDebugUnitTest \
--tests com.facebook.react.fabric.FabricUIManagerPullModelTest
These pass on main and pin what any scheduling of pulls must keep:
- pre-mount items (view preallocations) queued before the dispatch run
before the pull;
- a pull runs the mount hooks (UIManagerListener.didMountItems and
reportMount);
- with disableIdleMountItemFrameCallbackRearmAndroid, a surface that commits
before its root view attaches lets the frame callback idle, the attach
schedules a frame, and that frame mounts the commit after the
preallocation queued for the attach.
The shadow binding gains reportMount and a no-op drainPreallocateViewsQueue
so the last test can run the frame callback.
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/test/java/com/facebook/react/fabric/FabricUIManagerPullModelTest.kt
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/test/java/com/facebook/testutils/shadows/ShadowFabricUIManagerBinding.kt
0 commit comments