Explicitly disable v7 future flags to suppress warnings

Rather than removing the future prop, set v7_relativeSplatPath and
v7_startTransition to false so react-router stops logging deprecation
warnings.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-02-13 15:09:23 +01:00
parent 47d064a51b
commit d56d9eae3c
4 changed files with 26 additions and 4 deletions
+11 -1
View File
@@ -198,7 +198,17 @@ export interface AppRouterProps {
function DefaultRouter(props: PropsWithChildren<{}>) {
const configApi = useApi(configApiRef);
const basePath = getBasePath(configApi);
return <BrowserRouter basename={basePath}>{props.children}</BrowserRouter>;
return (
<BrowserRouter
basename={basePath}
future={{
v7_relativeSplatPath: false,
v7_startTransition: false,
}}
>
{props.children}
</BrowserRouter>
);
}
/**