Repository navigation
Detect lazy route discovery manifest version mismatches and trigger reloads - #13061
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 638e0fa The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
brophdawg11
force-pushed
the
brophdawg11/tokyo-drift
branch
from
February 19, 2025 21:12
451e1f6 to
1ab0914
Compare
brophdawg11
commented
Feb 20, 2025
| } | ||
| await fetchAndApplyManifestPatches( | ||
| [path], | ||
| fetcherKey ? window.location.href : path, |
Contributor
Author
There was a problem hiding this comment.
Reload the current path on fetcher calls, or the next path on navigations
brophdawg11
force-pushed
the
brophdawg11/tokyo-drift
branch
from
February 20, 2025 16:59
72fbfb4 to
818bc00
Compare
brophdawg11
marked this pull request as ready for review
February 20, 2025 17:18
jacob-ebey
reviewed
Feb 20, 2025
jacob-ebey
approved these changes
Feb 20, 2025
|
@brophdawg11 This is great! We've had this issue on production and this is exactly what we've been waiting for 🥳 |
This was referenced Feb 25, 2025
wilcoxmd
added a commit
to wilcoxmd/react-router
that referenced
this pull request
Mar 5, 2025
…d-route-typegen * upstream/dev: (65 commits) Generate types for `virtual:react-router/server-build` (remix-run#13152) Add support for client context and middleware (unstable) (remix-run#12941) Add playground for `vite-plugin-cloudflare` (remix-run#13151) do not typegen params for layout routes with a corresponding index (remix-run#13131) (remix-run#13140) Fix types for `loaderData` and `actionData` that contain `Record`s (remix-run#13139) chore: format chore(dev): remove unused dependencies (remix-run#13134) Remove unused Vite file system watcher (remix-run#13133) Remove stale changesets cherry-picked into release-next for 7.2.0 Fix custom SSR build input with `serverBundles` (remix-run#13107) Skip resource route flow in dev mode when SPA mode is enabled (remix-run#13113) chore: format Add integration test for `vite-plugin-cloudflare` (remix-run#13099) Fix custom client `build.rollupOptions.output.entryFileNames` (remix-run#13098) Detect lazy route discovery manifest version mismatches and trigger reloads (remix-run#13061) Fix critical CSS with custom `Vite.DevEnvironment` (remix-run#13066) Fix usage of `prerender` option with `serverBundles` (remix-run#13082) Fix support for custom `build.assetsDir` (remix-run#13077) Add changeset for remix-run#13064 Only import the root route when SSRing SPA mode's index.html (remix-run#13023) ...
Contributor
|
🤖 Hello there, We just published version Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds manifest version mismatch detection and forces a hard reload to get the user session onto the updated deployed version. Similar concept that we use when we hard reload on a route module asset 404.
Closes remix-run/remix#10455
Closes #12951