react-router
Advanced tools
Changelog
v6.4.2
Date: 2022-10-06
basename
in useFormAction
(#9352)IndexRouteObject
and NonIndexRouteObject
types to make hasErrorElement
optional (#9394)RouteObject
/RouteProps
types to surface the error in TypeScript. (#9366)Full Changelog: v6.4.1...v6.4.2
Changelog
v6.4.1
Date: 2022-09-22
initialEntries
(#9288)?index
for fetcher get submissions to index routes (#9312)Full Changelog: v6.4.0...v6.4.1
Changelog
v6.4.0
Date: 2022-09-13
Whoa this is a big one! 6.4.0
brings all the data loading and mutation APIs over from Remix. Here's a quick high level overview, but it's recommended you go check out the docs, especially the feature overview and the tutorial.
New react-router
APIs
createMemoryRouter
<RouterProvider>
loader
and mutate with a Route action
errorElement
defer
and Await
New react-router-dom
APIs
createBrowserRouter
/createHashRouter
<Form>
componentuseFetcher()
defer
and Await
<ScrollRestoration>
<Link relative="path">
(#9160)useLocation
returns the scoped location inside a <Routes location>
component (#9094)<Link replace>
prop if it is defined (#8779)Full Changelog: v6.3.0...v6.4.0