Skip to content

Commit

Permalink
chore: opt-in to new react router features to silence warnings (#3390)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbillman authored Nov 14, 2024
1 parent c010ef7 commit 876aab0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frontend/console/src/providers/routing-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,17 @@ const router = createBrowserRouter(
<Route path='*' element={<NotFoundPage />} />
</>,
),
{
future: {
v7_relativeSplatPath: true,
v7_fetcherPersist: true,
v7_normalizeFormMethod: true,
v7_partialHydration: true,
v7_skipActionErrorRevalidation: true,
},
},
)

export const RoutingProvider = () => {
return <RouterProvider router={router} />
return <RouterProvider router={router} future={{ v7_startTransition: true }} />
}

0 comments on commit 876aab0

Please sign in to comment.