Clarify RSC deployment skew and compatibility-aware recovery scope
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 28/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- react, typescript
- Domain
- backend-api-design, build-system
Research direction
Start by reading the existing experimental manager context and the linked plugin-rsc PR #1223, then review the related React Router issue and recovery PR. Compare deployment-specific base, manager-derived compatibility, and a stable manifest or version surface. Done means the project has a decided compatibility signal and documented ownership boundaries, if support is warranted.
Written by the indexing model from the issue text.
Description
Problem
Frameworks built on @vitejs/plugin-rsc need to handle RSC deployment skew.
A common failure mode is:
- A user has an old browser tab open.
- A new deployment goes live.
- The old tab sends an RSC navigation, route-discovery request, or server action to the new server.
- The old client may no longer be able to decode or safely use the new server response.
Frameworks can own the recovery behavior themselves. For example, React Router can return a 204 reload response and reload the document on the client instead of trying to decode an incompatible RSC payload.
The open question is what compatibility signal frameworks should compare.
Coarse Skew Recovery vs Compatibility-Aware Recovery
There seem to be two different levels of recovery.
1. Coarse skew recovery
This answers:
Is this browser tab from a different deployment?
If a deployment makes Vite base deployment-specific, then base can already be used for this.
For example:
base: "/assets/deploy-abc123/"
That is useful for “reload old tabs after a new deploy” behavior.
2. Compatibility-aware recovery
This answers a more specific RSC question:
Is this old client actually incompatible with the new server?
This is different from deployment identity. A new deployment does not necessarily mean the old client must reload. With RSC, it seems possible to support “no reload required” deployments when the relevant client/server contract has not changed.
That compatibility signal seems like it may need to account for RSC/build state such as:
- client reference keys and rendered exports
- server reference keys and exported functions
- final assets manifest
- final client/RSC/SSR output relevant to the RSC payload contract
- server action encryption identity, when action closure encryption is emitted
- relevant RSC runtime package versions or singleton dependencies
This would let a framework distinguish:
- “new deploy, but the old client can continue safely”
- “new deploy, incompatible RSC contract, reload the document”
Question
Should @vitejs/plugin-rsc support compatibility-aware recovery as a first-class concept?
If yes, what surface should frameworks use?
Possible directions:
- Frameworks use deployment-specific
basefor coarse skew recovery only. - Frameworks derive a compatibility version from the existing experimental
manager. @vitejs/plugin-rscexposes or documents a stable compatibility primitive, such as a finalized compatibility version or manifest.
The intent is not for @vitejs/plugin-rsc to own framework-specific recovery behavior. React Router can own the request protocol and document reload behavior.
The question is whether plugin-rsc should own or document the lower-level RSC compatibility signal, since it has the most authoritative view of the RSC graph and build output.
Related Context
- React Router RSC skew issue: https://github.com/remix-run/react-router/issues/14849
- React Router recovery PR: https://github.com/remix-run/react-router/pull/15032
- Previous plugin-rsc PR: https://github.com/vitejs/vite-plugin-react/pull/1223
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 287
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 19
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vitejs/vite-plugin-react
-
plugin-rsc: a client reference's CSS is linked before the CSS of the chunks it imports (build)Possibly taken @wozhenbang2004 claimed this 7 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
vitejs/vite-plugin-react#1570 ·
Maintainers usually reply within 1 day
-
pending triage
Difficulty 4/5 3-5 days Newbie friendliness 35/100
vitejs/vite-plugin-react#1581 ·
Maintainers usually reply within 1 day
-
[plugin-rsc] Build exits 0, but the app fails at runtime: a server action imported only by browser code is missing from the RSC buildPossibly taken @NeilPant claimed this 4 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
vitejs/vite-plugin-react#1578 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
vitejs/vite-plugin-react#1577 ·
Maintainers usually reply within 1 day
-
[plugin-rsc] inline "use server" function declarations lose hoisting and throw TDZ ReferenceErrorPossibly taken @draarivpatel-ui claimed this 2 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
vitejs/vite-plugin-react#1566 · 1 comment ·
Maintainers usually reply within 1 day
All issues in vitejs/vite-plugin-react
Similar issues
-
good first issue help wanted
Difficulty 2/5 Under an hour Newbie friendliness 86/100
Intelligenza-Umana/intelligenza-umana-web#16 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
open-webui/open-webui#35184 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
danielmiessler/LifeOS#3001 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day