Repository navigation
fix: recover state after discarded render - #1502
Conversation
Locks issue #1501 into React Router v6 E2E coverage before the fix lands.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Moves issue #1501 into shared E2E coverage so every supported router exercises the same failure signature and direct-load control.
Keeps the shared issue #1501 spec aligned with existing locator and page assertion conventions.
Retry a lost render-phase state update only on the pathname the hook last committed against.
commit: |
Bundle size
Brotli-compressed. Limits are set in the |
|
🚀 This PR is included in [email protected] The release is available on: |
The discarded-render desynchronization reproduces in React SPA, React Router v5 through v8, Remix, TanStack Router, and both Next.js routers. Each environment exercises the same shared fixture with an independent router-state probe and a direct-load control.
The fix retries a render-phase state update when reconciliation refs survive an abandoned render, while preserving the committed-pathname guard. All external-navigation cases and direct-load controls now pass.
Closes #1501.