fix: remove react-router v7_startTransition
This commit is contained in:
parent
724ab17d1a
commit
ba383ae98a
|
|
@ -18,22 +18,15 @@ if (window.SENTRY_RELEASE) {
|
|||
routerCreator = wrapCreateBrowserRouterV7(routerCreator)
|
||||
}
|
||||
|
||||
export const router = routerCreator(
|
||||
[
|
||||
{
|
||||
path: "/",
|
||||
Component: App,
|
||||
children: tree,
|
||||
errorElement: <ErrorElement />,
|
||||
},
|
||||
{
|
||||
path: "*",
|
||||
element: <NotFound />,
|
||||
},
|
||||
],
|
||||
export const router = routerCreator([
|
||||
{
|
||||
future: {
|
||||
v7_startTransition: true,
|
||||
},
|
||||
path: "/",
|
||||
Component: App,
|
||||
children: tree,
|
||||
errorElement: <ErrorElement />,
|
||||
},
|
||||
)
|
||||
{
|
||||
path: "*",
|
||||
element: <NotFound />,
|
||||
},
|
||||
])
|
||||
|
|
|
|||
|
|
@ -15,22 +15,15 @@ if (window.SENTRY_RELEASE) {
|
|||
routerCreator = wrapCreateBrowserRouterV7(routerCreator)
|
||||
}
|
||||
|
||||
export const router = routerCreator(
|
||||
[
|
||||
{
|
||||
path: "/",
|
||||
lazy: () => import("./App"),
|
||||
children: tree,
|
||||
errorElement: <ErrorElement />,
|
||||
},
|
||||
{
|
||||
path: "*",
|
||||
element: <NotFound />,
|
||||
},
|
||||
],
|
||||
export const router = routerCreator([
|
||||
{
|
||||
future: {
|
||||
v7_startTransition: true,
|
||||
},
|
||||
path: "/",
|
||||
lazy: () => import("./App"),
|
||||
children: tree,
|
||||
errorElement: <ErrorElement />,
|
||||
},
|
||||
)
|
||||
{
|
||||
path: "*",
|
||||
element: <NotFound />,
|
||||
},
|
||||
])
|
||||
|
|
|
|||
Loading…
Reference in New Issue