🔧 chore(router): enable React Router v7 future flags to suppress warnings
Add `future` prop to `BrowserRouter` in `web/src/index.js` with `v7_startTransition` and `v7_relativeSplatPath` turned on. This opts the app into upcoming React Router v7 behavior, removes console warnings, and readies the codebase for a smoother future upgrade. No runtime behavior changes; developer-experience improvement only.
This commit is contained in:
@@ -17,7 +17,12 @@ root.render(
|
||||
<React.StrictMode>
|
||||
<StatusProvider>
|
||||
<UserProvider>
|
||||
<BrowserRouter>
|
||||
<BrowserRouter
|
||||
future={{
|
||||
v7_startTransition: true,
|
||||
v7_relativeSplatPath: true,
|
||||
}}
|
||||
>
|
||||
<ThemeProvider>
|
||||
<PageLayout />
|
||||
</ThemeProvider>
|
||||
|
||||
Reference in New Issue
Block a user