🔧 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:
t0ng7u
2025-07-16 03:08:04 +08:00
parent a44fc51007
commit 42a8d3e3dc

View File

@@ -17,7 +17,12 @@ root.render(
<React.StrictMode>
<StatusProvider>
<UserProvider>
<BrowserRouter>
<BrowserRouter
future={{
v7_startTransition: true,
v7_relativeSplatPath: true,
}}
>
<ThemeProvider>
<PageLayout />
</ThemeProvider>