fix(deps): update react-router monorepo to v7.2.0 #128
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/react-router-monorepo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
7.1.5->7.2.07.1.5->7.2.0Release Notes
remix-run/react-router (react-router)
v7.2.0Compare Source
Minor Changes
New type-safe
hrefutility that guarantees links point to actual paths in your app (#13012)Patch Changes
Fix typegen for repeated params (#13012)
In React Router, path parameters are keyed by their name.
So for a path pattern like
/a/:id/b/:id?/c/:id, the last:idwill set the value foridinuseParamsand theparamsprop.For example,
/a/1/b/2/c/3will result in the value{ id: 3 }at runtime.Previously, generated types for params incorrectly modeled repeated params with an array.
So
/a/1/b/2/c/3generated a type like{ id: [1,2,3] }.To be consistent with runtime behavior, the generated types now correctly model the "last one wins" semantics of path parameters.
So
/a/1/b/2/c/3now generates a type like{ id: 3 }.Don't apply Single Fetch revalidation de-optimization when in SPA mode since there is no server HTTP request (#12948)
Properly handle revalidations to across a prerender/SPA boundary (#13021)
.datarequests if the path wasn't pre-rendered because the request will 404loaderdata inssr:falsemode is static because it's generated at build timeclientLoaderto do anything dynamicloaderand not aclientLoader, we disable revalidation by default because there is no new data to retrieve.datarequest logic if there are no server loaders withshouldLoad=truein our single fetchdataStrategy.datarequest that would 404 after a submissionError at build time in
ssr:false+prerenderapps for the edge case scenario of: (#13021)loader(does not have aclientLoader)loaderDatabecause there is no server on which to run theloaderclientLoaderor pre-rendering the child pathsclientLoader, calling theserverLoader()on non-prerendered paths will throw a 404Add unstable support for splitting route modules in framework mode via
future.unstable_splitRouteModules(#11871)Add
unstable_SerializesTobrand type for library authors to register types serializable by React Router's streaming format (turbo-stream) (ab5b05b02)Align dev server behavior with static file server behavior when
ssr:falseis set (#12948)prerenderconfig exists, only SSR down to the rootHydrateFallback(SPA Mode)prerenderconfig exists but the current path is not prerendered, only SSR down to the rootHydrateFallback(SPA Fallback).datarequests to non-pre-rendered pathsImprove prefetch performance of CSS side effects in framework mode (#12889)
Disable Lazy Route Discovery for all
ssr:falseapps and not just "SPA Mode" because there is no runtime server to serve the search-param-configured__manifestrequests (#12894)ssr:falseand noprerenderconfig but we realized it should apply to allssr:falseapps, including those prerendering multiple pagesprerenderscenarios we would prerender the/__manifestfile assuming the static file server would serve it but that makes some unneccesary assumptions about the static file server behaviorsProperly handle interrupted manifest requests in lazy route discovery (#12915)
remix-run/react-router (react-router-dom)
v7.2.0Compare Source
Patch Changes
react-router@7.2.0Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Renovate Bot.