Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented May 20, 2025

Summary:

This applies changes from RN 0.79 that fix buggy behaviour.
Specifically picking this change:

This avoids state updates being dropped, which causes all kind of bugs

hannojg and others added 2 commits May 20, 2025 16:15
Summary:
Pull Request resolved: facebook#50773

With shadow node syncing enabled by default, whenever a shadow node has to be cloned, we can be guaranteed that the state on the shadow node will be the most recent state in most cases.

This change fixes state updates being ignored when cloning YogaLayoutableShadowNodes from a commit hook. Since the most recent state gets updated post commit, any clone reading the most recent state might miss state changes done within the commit.

Changelog: [Internal]

Reviewed By: rshest, cipolleschi

Differential Revision: D72315898

fbshipit-source-id: 5e14d03681dd1cc5686a649caa2e8c3685042cfa
@ghost ghost merged commit 31b6e7c into 0.78.0-discord May 20, 2025
4 of 7 checks passed
bdbaraban pushed a commit that referenced this pull request May 22, 2025
* Add feature flag for using shadow node state on clone

Copy of commit: b962646
PR: facebook#50751

wasn't cherry-pickable

* Use source shadow node state on clone (facebook#50773)

Summary:
Pull Request resolved: facebook#50773

With shadow node syncing enabled by default, whenever a shadow node has to be cloned, we can be guaranteed that the state on the shadow node will be the most recent state in most cases.

This change fixes state updates being ignored when cloning YogaLayoutableShadowNodes from a commit hook. Since the most recent state gets updated post commit, any clone reading the most recent state might miss state changes done within the commit.

Changelog: [Internal]

Reviewed By: rshest, cipolleschi

Differential Revision: D72315898

fbshipit-source-id: 5e14d03681dd1cc5686a649caa2e8c3685042cfa

---------

Co-authored-by: Nick Lefever <[email protected]>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant