Skip to content

Commit

Permalink
Use react concurrent mode state in RouterProvider (#10553)
Browse files Browse the repository at this point in the history
* Use react concurrent mode state in RouterProvider

* Bum bundle
  • Loading branch information
brophdawg11 committed Jun 1, 2023
1 parent 981dda7 commit ad45f83
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/young-glasses-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router": patch
---

[internal] use concurrent mode state
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"none": "12.0 kB"
},
"packages/react-router-dom/dist/umd/react-router-dom.production.min.js": {
"none": "17.9 kB"
"none": "18.0 kB"
}
}
}
8 changes: 4 additions & 4 deletions packages/react-router/lib/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ export function RouterProvider({
<DataRouterContext.Provider value={dataRouterContext}>
<DataRouterStateContext.Provider value={state}>
<Router
basename={router.basename}
location={router.state.location}
navigationType={router.state.historyAction}
basename={basename}
location={state.location}
navigationType={state.historyAction}
navigator={navigator}
>
{router.state.initialized ? (
{state.initialized ? (
<DataRoutes routes={router.routes} state={state} />
) : (
fallbackElement
Expand Down

0 comments on commit ad45f83

Please sign in to comment.