Repository navigation
fix: preserve hydration and suspended error recovery contracts - #43
tannerlinsley wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: fceb482 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Hydration and suspended error recovery can alter already-correct DOM, trigger resource loads, suppress application scrolling, or render retained subscribers against stale props. This ports the fixes with standalone regressions using public React APIs.
scrollTowrapper so the application owns scroll restoration.Validation
The full local CI gate passes: unit tests, types, build/export verification, and source/dist size budgets. All 14 Chromium regressions pass and now run in PR CI. The same regression suite reproduces failures against pristine main. Shared-contract cases are also checked against React; the measurement report explicitly identifies Redact-specific policies excluded from that control.
The complete before/after size table and reproduction commands are in
benchmarks/HYDRATION_SUSPENSE_RECOVERY.md. Built combined client: 28,060 to 28,634 gzip bytes (+574). Default Vite client: 23,232 to 23,814 (+582). Only exceeded budgets increase, to measured values without extra margin. This is a correctness cost, not a performance improvement claim.Includes a patch changeset. No generated bundles or source maps are committed.
Summary by CodeRabbit