Repository navigation
chore: universal root component now carries a committed range - #587
Merged
Merged
Conversation
Boundary invalidation and queued suspense replays re-render without hook updates, so retained-subtree adoption needs their signals: scheduled owners (plus ancestors) captured per attempt, full-root schedules disabling retention, and runReplay attempts marked ineligible.
…sets scheduleOwned stamps the owner chain with the root's dirty epoch (amortized O(1) per call), prepare consumes the epoch with a single increment, and the retained-subtree bail checks one integer instead of a Set lookup.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit 02bbbf9. Configure here.
This was referenced Aug 9, 2026
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.

based on info from #574 (comment)
Note
High Risk
Changes core universal commit, reconciliation, scheduling, and listener tables; incorrect retention or epoch logic could cause stale UI, lost updates, or broken suspense/event behavior.
Overview
Universal renderer now treats the root component like any other owner with a committed range, so urgent updates to root state replay through the scoped path instead of falling back to a whole-tree prepare.
During eligible plain urgent renders, unchanged component subtrees (matching props, contexts, component revision, no pending updates, no boundary/portal issues) emit retained range blueprints and reconcile without re-executing those owners; dirty epochs stamped on
scheduleOwnedforce re-render for scheduled work. Child owner claims add a sequential cursor fast path when sibling order is stable.Scoped replay fixes include using the committed range key, skipping redundant feature walks for root scope, aligning root
materializeValueidentity paths with scoped replay, and retiring event/local listeners only for hosts that were re-staged or removed (so retained subtrees keep listeners). Owner children merge retained and drafted records in claim order.Benchmarks add
root-state-clean/root-state-dirtyscenarios and a clean/dirty ratio guard; tests cover root-state siblings, context invalidation, list reorder, and suspense resolve beside retained siblings.Reviewed by Cursor Bugbot for commit 02bbbf9. Bugbot is set up for automated code reviews on this repo. Configure here.