Skip to content

Revert shadow-tree commit-lifecycle hooks - #47

Merged
piaskowyk merged 1 commit into
rea4-discordfrom
piaskowyk/rea4-revert-shadow-tree-commit-hooks
Sep 10, 2026
Merged

Revert shadow-tree commit-lifecycle hooks#47
piaskowyk merged 1 commit into
rea4-discordfrom
piaskowyk/rea4-revert-shadow-tree-commit-hooks

Conversation

@piaskowyk

Copy link
Copy Markdown

Summary:

rea4-discord counterpart of #44 (same change, targeting rea4-discord instead of 0.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 added shadowTreeCommitSucceeded / shadowTreeCommitFinalized to ShadowTreeDelegate and UIManagerCommitHook, fired them from ShadowTree::tryCommit (via a Discord-only ScopeGuard/defer helper) and fanned them out from UIManager.

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

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
piaskowyk merged commit 694545b into rea4-discord Sep 10, 2026
36 checks passed
@piaskowyk
piaskowyk deleted the piaskowyk/rea4-revert-shadow-tree-commit-hooks branch September 10, 2026 14:55
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