build(deps): update react-router monorepo #561
Merged
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 PR contains the following updates:
^1.5.0
->^1.6.0
^6.10.0
->^6.11.0
Release Notes
remix-run/react-router (@remix-run/router)
v1.6.0
Compare Source
Minor Changes
Enable relative routing in the
@remix-run/router
when providing a source route ID from which the path is relative to: (#10336)router.navigate("../path", { fromRouteId: "some-route" })
.router.fetch
which already receives a source route IDIntroduce a new
@remix-run/router
future.v7_prependBasename
flag to enablebasename
prefixing to all paths coming intorouter.navigate
androuter.fetch
.basename
was prepended in the React Router layer, but now that relative routing is being handled by the router we need prepend thebasename
after resolving any relative pathsbasename
support inuseFetcher
as wellPatch Changes
LoaderFunction
/ActionFunction
return type to preventundefined
from being a valid return value (#10267)fetcher.load
call to a route without aloader
(#10345)createRouter
detectErrorBoundary
option in favor of the newmapRouteProperties
option for converting a framework-agnostic route to a framework-aware route. This allows us to set more than just thehasErrorBoundary
property during route pre-processing, and is now used for mappingComponent -> element
andErrorBoundary -> errorElement
inreact-router
. (#10287)loader
revalidations). However, since fetchers have a static href, they should only revalidate onaction
submissions orrouter.revalidate
calls. (#10344)AbortController
usage between revalidating fetchers and the thing that triggered them such that the unmount/deletion of a revalidating fetcher doesn't impact the ongoing triggering navigation/revalidation (#10271)remix-run/react-router (react-router-dom)
v6.11.0
Compare Source
Minor Changes
basename
support inuseFetcher
(#10336)basename
then you will need to remove the manually prependedbasename
from yourfetcher
calls (fetcher.load('/basename/route') -> fetcher.load('/route')
)Patch Changes
Component
instead ofelement
on a route definition (#10287)<Link to="//">
and other invalid URL values (#10367)useSyncExternalStore
touseState
for internal@remix-run/router
router state syncing in<RouterProvider>
. We found some subtle bugs where router state updates got propagated before other normaluseState
updates, which could lead to footguns inuseEffect
calls. (#10377, #10409)StaticRouterProvider
's internalRouter
component (#10401)RouterProvider
,useNavigate
/useSubmit
/fetcher.submit
are now stable across location changes, since we can handle relative routing via the@remix-run/router
instance and get rid of our dependence onuseLocation()
. When usingBrowserRouter
, these hooks remain unstable across location changes because they still rely onuseLocation()
. (#10336)react-router@6.11.0
@remix-run/router@1.6.0
Configuration
📅 Schedule: Branch creation - "on the 1st day of the month" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.