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

Offen
#5,276 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript, vite
Bereich
api, backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
37k
Forks
1.2k
Ø Merge
8 Std. 43 Min.
Gemergte PRs (30 T.)
365

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus solidjs/solid

Alle Issues in solidjs/solid

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.