Clarify RSC deployment skew and compatibility-aware recovery scope
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 28/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- react, typescript
調査の方向性
まず、既存の experimental manager のコンテキストとリンクされている plugin-rsc PR #1223 を読み、次に関連する React Router issue と recovery PR を確認します。deployment 固有の base、manager から導出される互換性、安定した manifest または version の surface を比較します。サポートが妥当な場合に、プロジェクトとして互換性シグナルが決定され、所有範囲が文書化されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 1.2k
- フォーク
- 287
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 19
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vitejs/vite-plugin-react のほかの issue
-
plugin-rsc: a client reference's CSS is linked before the CSS of the chunks it imports (build)対応中かも @wozhenbang2004 が 7 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
vitejs/vite-plugin-react#1570 ·
メンテナーはふだん 1 日以内に返信
-
pending triage
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
vitejs/vite-plugin-react#1581 ·
メンテナーはふだん 1 日以内に返信
-
[plugin-rsc] Build exits 0, but the app fails at runtime: a server action imported only by browser code is missing from the RSC build対応中かも @NeilPant が 4 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
vitejs/vite-plugin-react#1578 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
vitejs/vite-plugin-react#1577 ·
メンテナーはふだん 1 日以内に返信
-
[plugin-rsc] inline "use server" function declarations lose hoisting and throw TDZ ReferenceError対応中かも @draarivpatel-ui が 3 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
vitejs/vite-plugin-react#1566 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
vitejs/vite-plugin-react の issue をすべて見る
似ている issue
-
good first issue help wanted
難易度 2/5 1時間未満 初心者へのやさしさ 86/100
Intelligenza-Umana/intelligenza-umana-web#16 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
open-webui/open-webui#35184 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
danielmiessler/LifeOS#3001 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信