Remove warnings
ref: https://reactrouter.com/6.30.0/upgrading/future#v7_starttransition
This commit is contained in:
parent
658c2776f1
commit
c0ac2295d0
@ -51,7 +51,7 @@ const router = createBrowserRouter(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
element: <ProtectedRoute />,
|
element: <ProtectedRoute />,
|
||||||
errorElement:<ErrorPage/>,
|
errorElement: <ErrorPage />,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
element: <HomeLayout />,
|
element: <HomeLayout />,
|
||||||
@ -90,6 +90,10 @@ const router = createBrowserRouter(
|
|||||||
future: {
|
future: {
|
||||||
v7_relativeSplatPath: true,
|
v7_relativeSplatPath: true,
|
||||||
v7_startTransition: true,
|
v7_startTransition: true,
|
||||||
|
v7_fetcherPersist: true,
|
||||||
|
v7_normalizeFormMethod: true,
|
||||||
|
v7_partialHydration: true,
|
||||||
|
v7_skipActionErrorRevalidation: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user