react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Add SurfaceHandlerCommitHook responsible for preserving layout constraints

Open j-piasecki opened this issue 1 month ago • 1 comments

Summary: Changelog: [General][Added] Added a SurfaceHandlerCommitHook to preserve layout constraints during commits from different threads

Since layout constraints and layout context are being kept in the props of the RootShadowNode, it was possible for the JS revision merge to lose an update if it was being commited concurrently.

SurfaceHandlerCommitHook fixes this by ensuring that the root node always uses the latest context and constraints.

Differential Revision: D88839901

j-piasecki avatar Dec 10 '25 11:12 j-piasecki

@j-piasecki has exported this pull request. If you are a Meta employee, you can view the originating Diff in D88839901.

meta-codesync[bot] avatar Dec 10 '25 11:12 meta-codesync[bot]