Repository navigation
feat(rsc): reload stale clients after new deployments - #15318
Conversation
deployments
Preview Build AvailablePreview builds have been created for this PR. You can install pnpm install "remix-run/react-router#preview/pr-15318&path:packages/react-router"And/or install other packages via: pnpm install "remix-run/react-router#preview/pr-15318&path:packages/react-router-dev"
pnpm install "remix-run/react-router#preview/pr-15318&path:packages/react-router-express"
pnpm install "remix-run/react-router#preview/pr-15318&path:packages/react-router-node"
pnpm install "remix-run/react-router#preview/pr-15318&path:packages/react-router-serve"These preview builds will be updated automatically as you push new commits. |
β CLA SignedThanks for signing the Contributor License Agreement. |
β Change File FoundOne or more change files found.
|
| } | ||
|
|
||
| if ( | ||
| clientVersion !== undefined && |
There was a problem hiding this comment.
When would this be undefined? In normal framework mode we rrequire it to be present and matching
if (build.assets.version !== url.searchParams.get("version")) {
// return 204
}There was a problem hiding this comment.
non framework / development mode.
|
|
||
| if ( | ||
| clientVersion !== undefined && | ||
| (await handleClientVersionMismatch( |
There was a problem hiding this comment.
This abstraction feels weird with the fact that it's async, returning a boolean or hanging promise, and used in an if statement here. I get why though - it seems the alternative is a decent bit of duplication and a handful of separate utilities :/
|
The preview branch |
|
π€ Hello there, We recently published version Thanks! |
No description provided.