Releasing a new build breaks non-`GET` RPC for open pages

オープン
#5,276 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript, vite
領域
api, backend

調査の方向性

Start with the linked gist repro and trace how the Vite plugin handles build IDs on non-GET RPC requests. The issue asks for a server opt-out or a shape-based compatibility check, but does not identify the relevant files or define compatibility behavior. Done means open pages can keep making compatible RPC calls after a deploy; the expected compatibility rules need to be settled first.

索引モデルが issue の本文から書いたものです。

説明

I'm observing that every time I deploy, non-GET RPC breaks for every open page. The server detects any time the inbound request has a different build ID than the running app, and the Vite plugin configures the server to reject all such requests, without a clean way to opt out.

This is... a very suboptimal architecture for me. It's a poor user experience for the page to simply stop working just because I did a deploy that has nothing to do with RPC. SolidStart tried to resolve this by doing a page reload when it hit the error, but that just causes different problems.

Can we revisit this? I'd at least like an opt-out for the server. But really, I'd much rather have a shape-based compatibility check that mostly gets things right, rather than a check that's guaranteed to never miss anything, but does that by breaking everything every time.

Here's a simple repro, but I'm not sure its necessary.

主要言語
TypeScript
スター
37k
フォーク
1.2k
平均マージ
8時間 43分
マージ済み PR(30日)
365

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

solidjs/solid のほかの issue

solidjs/solid の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。