fix(deps): update react-router monorepo to v7.2.0 #128
Loading…
x
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.0
7.1.5
->7.2.0
Release Notes
remix-run/react-router (react-router)
v7.2.0
Compare Source
Minor Changes
New type-safe
href
utility 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:id
will set the value forid
inuseParams
and theparams
prop.For example,
/a/1/b/2/c/3
will 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/3
generated 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/3
now 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)
.data
requests if the path wasn't pre-rendered because the request will 404loader
data inssr:false
mode is static because it's generated at build timeclientLoader
to do anything dynamicloader
and not aclientLoader
, we disable revalidation by default because there is no new data to retrieve.data
request logic if there are no server loaders withshouldLoad=true
in our single fetchdataStrategy
.data
request that would 404 after a submissionError at build time in
ssr:false
+prerender
apps for the edge case scenario of: (#13021)loader
(does not have aclientLoader
)loaderData
because there is no server on which to run theloader
clientLoader
or 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_SerializesTo
brand 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:false
is set (#12948)prerender
config exists, only SSR down to the rootHydrateFallback
(SPA Mode)prerender
config exists but the current path is not prerendered, only SSR down to the rootHydrateFallback
(SPA Fallback).data
requests to non-pre-rendered pathsImprove prefetch performance of CSS side effects in framework mode (#12889)
Disable Lazy Route Discovery for all
ssr:false
apps and not just "SPA Mode" because there is no runtime server to serve the search-param-configured__manifest
requests (#12894)ssr:false
and noprerender
config but we realized it should apply to allssr:false
apps, including those prerendering multiple pagesprerender
scenarios we would prerender the/__manifest
file 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.0
Compare Source
Patch Changes
react-router@7.2.0
Configuration
📅 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.