Skip to content

Conversation

@j-piasecki
Copy link
Contributor

Summary:
Changelog: [General][Changed] - Refactor how shadow tree revisions are promoted as latest for JS consistency

Changes LazyShadowTreeRevisionConsistencyManager::updateCurrentRevision to pull the latest commited revision for a given surface id instead of accepting the new revision as a parameter.

This way, the new revision is read from the same place for every update, which opens up the way to implement commit branching. This change will allow to always read from the JS tree revision, if it exists.

Differential Revision: D88151490

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 10, 2025
@facebook-github-bot facebook-github-bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Dec 10, 2025
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Dec 11, 2025
…tency (facebook#54833)

Summary:

Changelog: [General][Changed] - Refactor how shadow tree revisions are promoted as latest for JS consistency

Changes `LazyShadowTreeRevisionConsistencyManager::updateCurrentRevision` to pull the latest commited revision for a given surface id instead of accepting the new revision as a parameter.

This way, the new revision is read from the same place for every update, which opens up the way to implement commit branching. This change will allow to always read from the JS tree revision, if it exists.

Differential Revision: D88151490
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Dec 11, 2025
…tency (facebook#54833)

Summary:

Changelog: [General][Changed] - Refactor how shadow tree revisions are promoted as latest for JS consistency

Changes `LazyShadowTreeRevisionConsistencyManager::updateCurrentRevision` to pull the latest commited revision for a given surface id instead of accepting the new revision as a parameter.

This way, the new revision is read from the same place for every update, which opens up the way to implement commit branching. This change will allow to always read from the JS tree revision, if it exists.

Differential Revision: D88151490
@j-piasecki j-piasecki force-pushed the export-D88151490 branch 2 times, most recently from 4d6137f to bff42c4 Compare December 12, 2025 07:27
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Dec 12, 2025
…tency (facebook#54833)

Summary:

Changelog: [General][Changed] - Refactor how shadow tree revisions are promoted as latest for JS consistency

Changes `LazyShadowTreeRevisionConsistencyManager::updateCurrentRevision` to pull the latest commited revision for a given surface id instead of accepting the new revision as a parameter.

This way, the new revision is read from the same place for every update, which opens up the way to implement commit branching. This change will allow to always read from the JS tree revision, if it exists.

Differential Revision: D88151490
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Dec 12, 2025
…tency (facebook#54833)

Summary:

Changelog: [General][Changed] - Refactor how shadow tree revisions are promoted as latest for JS consistency

Changes `LazyShadowTreeRevisionConsistencyManager::updateCurrentRevision` to pull the latest commited revision for a given surface id instead of accepting the new revision as a parameter.

This way, the new revision is read from the same place for every update, which opens up the way to implement commit branching. This change will allow to always read from the JS tree revision, if it exists.

Differential Revision: D88151490
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Dec 12, 2025
…tency (facebook#54833)

Summary:

Changelog: [General][Changed] - Refactor how shadow tree revisions are promoted as latest for JS consistency

Changes `LazyShadowTreeRevisionConsistencyManager::updateCurrentRevision` to pull the latest commited revision for a given surface id instead of accepting the new revision as a parameter.

This way, the new revision is read from the same place for every update, which opens up the way to implement commit branching. This change will allow to always read from the JS tree revision, if it exists.

Differential Revision: D88151490
@j-piasecki j-piasecki force-pushed the export-D88151490 branch 2 times, most recently from 33815fd to 855704c Compare December 15, 2025 16:28
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Dec 15, 2025
…tency (facebook#54833)

Summary:

Changelog: [General][Changed] - Refactor how shadow tree revisions are promoted as latest for JS consistency

Changes `LazyShadowTreeRevisionConsistencyManager::updateCurrentRevision` to pull the latest commited revision for a given surface id instead of accepting the new revision as a parameter.

This way, the new revision is read from the same place for every update, which opens up the way to implement commit branching. This change will allow to always read from the JS tree revision, if it exists.

Differential Revision: D88151490
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Dec 16, 2025
…tency (facebook#54833)

Summary:

Changelog: [General][Changed] - Refactor how shadow tree revisions are promoted as latest for JS consistency

Changes `LazyShadowTreeRevisionConsistencyManager::updateCurrentRevision` to pull the latest commited revision for a given surface id instead of accepting the new revision as a parameter.

This way, the new revision is read from the same place for every update, which opens up the way to implement commit branching. This change will allow to always read from the JS tree revision, if it exists.

Differential Revision: D88151490
@j-piasecki j-piasecki force-pushed the export-D88151490 branch 2 times, most recently from 4a8d4a0 to 8ee667b Compare December 17, 2025 14:31
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Dec 17, 2025
…tency (facebook#54833)

Summary:

Changelog: [General][Changed] - Refactor how shadow tree revisions are promoted as latest for JS consistency

Changes `LazyShadowTreeRevisionConsistencyManager::updateCurrentRevision` to pull the latest commited revision for a given surface id instead of accepting the new revision as a parameter.

This way, the new revision is read from the same place for every update, which opens up the way to implement commit branching. This change will allow to always read from the JS tree revision, if it exists.

Differential Revision: D88151490
…tency (facebook#54833)

Summary:

Changelog: [General][Changed] - Refactor how shadow tree revisions are promoted as latest for JS consistency

Changes `LazyShadowTreeRevisionConsistencyManager::updateCurrentRevision` to pull the latest commited revision for a given surface id instead of accepting the new revision as a parameter.

This way, the new revision is read from the same place for every update, which opens up the way to implement commit branching. This change will allow to always read from the JS tree revision, if it exists.

Differential Revision: D88151490
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants