Update dependency react-router to ^7.6.1 #15
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/react-router-7.x"
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.6.0
->^7.6.1
Release Notes
remix-run/react-router (react-router)
v7.6.1
Compare Source
Patch Changes
Update
Route.MetaArgs
to reflect thatdata
can be potentiallyundefined
(#13563)This is primarily for cases where a route
loader
threw an error to it's ownErrorBoundary
. but it also arises in the case of a 404 which renders the rootErrorBoundary
/meta
but the root loader did not run because not routes matched.Partially revert optimization added in
7.1.4
to reduce calls tomatchRoutes
because it surfaced other issues (#13562)Fix typegen when same route is used at multiple paths (#13574)
For example,
routes/route.tsx
is used at 4 different paths here:Previously, typegen would arbitrarily pick one of these paths to be the "winner" and generate types for the route module based on that path.
Now, typegen creates unions as necessary for alternate paths for the same route file.
Better types for
params
(#13543)For example:
Previously,
params
for theroutes/layout.tsx
route were calculated as{ p: string, l: string }
.This incorrectly ignores params that could come from child routes.
If visiting
/parent/1/layout/2/child1/3/4
, the actual params passed toroutes/layout.tsx
will have a type of{ p: string, l: string, c1a: string, c1b: string }
.Now,
params
are aware of child routes and autocompletion will include child params as optionals:You can also narrow the types for
params
as it is implemented as a normalized union of params for each page that includesroutes/layout.tsx
:UNSTABLE: renamed internal
react-router/route-module
export toreact-router/internal
UNSTABLE: removed
Info
export from generated+types/*
filesAvoid initial fetcher execution 404 error when Lazy Route Discovery is interrupted by a navigation (#13564)
href replaces splats
*
(#13593)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.