Skip to content

chore: refactor to eliminate duplication, followup to #602 - #612

Merged
leonidaz merged 1 commit into
mainfrom
refactor
Aug 7, 2026
Merged

leonidaz merged 1 commit into
mainfrom
refactor

Conversation

@leonidaz

@leonidaz leonidaz commented Aug 7, 2026 •

Copy link
Copy Markdown
Collaborator

Note

Medium Risk
Touches core render-scope and prop-identity behavior for deferred JSX; incorrect caching could reintroduce effect/memo churn or stale context reads, though behavior is locked by existing and new tests.

Overview
Refactors scoped JSX deferral by pulling the shared scope/context caching logic into a new createScopedResolver helper, then wiring createScopedValue and scoped element children through it instead of duplicating the same block.

Keyed descriptor tracking now runs only when the deferred element’s key getter runs (and only when the resolved key is null but the inner descriptor was keyed), rather than on every full resolve.

Adds regression coverage with NestedFailureOwner: a nested scoped record that throws while resolving props must not break sibling deferred callbacks—callback prop identity still stays stable across context updates.

Reviewed by Cursor Bugbot for commit 660ed10. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions github-actions Bot added the chore PR: tooling, dependencies, repo maintenance label Aug 7, 2026
@leonidaz
leonidaz marked this pull request as ready for review August 7, 2026 15:21
@leonidaz
leonidaz merged commit 15bd6c3 into main Aug 7, 2026
52 checks passed
@leonidaz
leonidaz deleted the refactor branch August 7, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore PR: tooling, dependencies, repo maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant