chore: Update version for release #10981
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 was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release-next, this PR will be updated.
Releases
react-router-dom@6.18.0
Minor Changes
Add support for manual fetcher key specification via
useFetcher({ key: string })
so you can access the same fetcher instance from different components in your application without prop-drilling (RFC) (#10960)useFetchers
so that they can be looked up bykey
Add
navigate
/fetcherKey
params/props touseSumbit
/Form
to support kicking off a fetcher submission under the hood with an optionally user-specifiedkey
(#10960)useFetcher({ key })
to look it up elsewherePatch Changes
RouterProvider
that holds completed fetcher data, in preparation for the upcoming future flag that will change the fetcher persistence/cleanup behavior (#10961)future
prop onBrowserRouter
,HashRouter
andMemoryRouter
so that it accepts aPartial<FutureConfig>
instead of requiring all flags to be included. (#10962)@remix-run/router@1.11.0
react-router@6.18.0
@remix-run/router@1.11.0
Minor Changes
Add a new
future.v7_fetcherPersist
flag to the@remix-run/router
to change the persistence behavior of fetchers whenrouter.deleteFetcher
is called. Instead of being immediately cleaned up, fetchers will persist until they return to anidle
state (RFC) (#10962)useFetchers()
API was always supposed to only reflect in-flight fetcher information for pending/optimistic UI -- it was not intended to reflect fetcher data or hang onto fetchers after they returned to anidle
stateuseFetchers()
. They served effectively no purpose in there since you can access the data viauseFetcher().data
).idle
state. They will remain exposed viauseFetchers
while in-flight so you can still access pending/optimistic data after unmount.When
v7_fetcherPersist
is enabled, the router now performs ref-counting on fetcher keys viagetFetcher
/deleteFetcher
so it knows when a given fetcher is totally unmounted from the UI (#10977)deletedFetchers
array to the subscriber callbacks so that the UI layer can remove associated fetcher dataAdd support for optional path segments in
matchPath
(#10768)Patch Changes
router.getFetcher
/router.deleteFetcher
type definitions which incorrectly specifiedkey
as an optional parameter (#10960)react-router@6.18.0
Patch Changes
future
prop onBrowserRouter
,HashRouter
andMemoryRouter
so that it accepts aPartial<FutureConfig>
instead of requiring all flags to be included. (#10962)@remix-run/router@1.11.0
react-router-dom-v5-compat@6.18.0
Patch Changes
react-router-dom@6.18.0
react-router@6.18.0
react-router-native@6.18.0
Patch Changes
react-router@6.18.0