Repository navigation
chore: Update version for release - #10981
Merged
Merged
Conversation
This was referenced Dec 3, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)useFetchersso that they can be looked up bykeyAdd
navigate/fetcherKeyparams/props touseSumbit/Formto support kicking off a fetcher submission under the hood with an optionally user-specifiedkey(#10960)useFetcher({ key })to look it up elsewherePatch Changes
RouterProviderthat holds completed fetcher data, in preparation for the upcoming future flag that will change the fetcher persistence/cleanup behavior (#10961)futureprop onBrowserRouter,HashRouterandMemoryRouterso that it accepts aPartial<FutureConfig>instead of requiring all flags to be included. (#10962)@remix-run/router@1.11.0react-router@6.18.0@remix-run/router@1.11.0
Minor Changes
Add a new
future.v7_fetcherPersistflag to the@remix-run/routerto change the persistence behavior of fetchers whenrouter.deleteFetcheris called. Instead of being immediately cleaned up, fetchers will persist until they return to anidlestate (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 anidlestateuseFetchers(). They served effectively no purpose in there since you can access the data viauseFetcher().data).idlestate. They will remain exposed viauseFetcherswhile in-flight so you can still access pending/optimistic data after unmount.When
v7_fetcherPersistis enabled, the router now performs ref-counting on fetcher keys viagetFetcher/deleteFetcherso it knows when a given fetcher is totally unmounted from the UI (#10977)deletedFetchersarray 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.deleteFetchertype definitions which incorrectly specifiedkeyas an optional parameter (#10960)react-router@6.18.0
Patch Changes
futureprop onBrowserRouter,HashRouterandMemoryRouterso that it accepts aPartial<FutureConfig>instead of requiring all flags to be included. (#10962)@remix-run/router@1.11.0react-router-dom-v5-compat@6.18.0
Patch Changes
react-router-dom@6.18.0react-router@6.18.0react-router-native@6.18.0
Patch Changes
react-router@6.18.0