Skip to content

Commit

Permalink
Apply react-router v7 flags
Browse files Browse the repository at this point in the history
  • Loading branch information
asiia-trilitech committed Jan 8, 2025
1 parent 7616340 commit bec4a5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion apps/web/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ ReactDOM.createRoot(document.getElementById("root")!).render(
<PersistGate loading={<div>loading</div>} persistor={persistor}>
<ErrorBoundary fallback={<ErrorPage />} onError={logError}>
<ReactQueryProvider>
<BrowserRouter>
<BrowserRouter future={{
v7_relativeSplatPath: true,
v7_startTransition: true,
}}>
<DynamicDisclosureProvider>
<App />
</DynamicDisclosureProvider>
Expand Down
5 changes: 4 additions & 1 deletion apps/web/src/testUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ const makeWrapper =
});

return (
<BrowserRouter>
<BrowserRouter future={{
v7_relativeSplatPath: true,
v7_startTransition: true,
}}>
<QueryClientProvider client={new QueryClient()}>
<Provider store={store}>
<DynamicModalContext.Provider value={dynamicModal}>
Expand Down

0 comments on commit bec4a5c

Please sign in to comment.