Revert shadow-tree commit-lifecycle hooks - #47
Merged
piaskowyk merged 1 commit intoSep 10, 2026
Conversation
This reverts commit 9eee718. The shadowTreeCommitSucceeded / shadowTreeCommitFinalized hooks existed only to make Reanimated's props-registry equality eviction race-free. That eviction turned out to be performance neutral and has been removed from the Reanimated fork, so nothing overrides these hooks anymore and the fork can drop the divergence from upstream in ShadowTree, ShadowTreeDelegate, UIManager and UIManagerCommitHook. Also restores the configureEventEmitterCallback() call in SampleTurboModuleSpec.cpp, which that commit had incidentally commented out. Co-authored-by: Cursor <cursoragent@cursor.com>
piaskowyk
deleted the
piaskowyk/rea4-revert-shadow-tree-commit-hooks
branch
September 10, 2026 14:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
rea4-discordcounterpart of #44 (same change, targetingrea4-discordinstead of0.86.0-discord). The cherry-pick applied cleanly and the resulting diff is identical to that PR's.Reverts 9eee718 (
[Android] shadow-tree commit-lifecycle hooks, ported from react-native-archived#100), which addedshadowTreeCommitSucceeded/shadowTreeCommitFinalizedtoShadowTreeDelegateandUIManagerCommitHook, fired them fromShadowTree::tryCommit(via a Discord-onlyScopeGuard/deferhelper) and fanned them out fromUIManager.New measurements show that this change does not affect performance. This PR is part of the props-registry equality eviction of Reanimated updates, which is already solved in a different way inside Reanimated, as well as in Reanimated 4.
Made with Cursor