Skip to content

Commit

Permalink
Prepare for react-router v7
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan committed Dec 15, 2024
1 parent fd8afc4 commit 0d4e6f9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/core/router/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ const router = sentryCreateBrowserRouter(
</Route>
</Route>,
),
{
future: {
v7_relativeSplatPath: true,
},
},
);

const Router = () => {
Expand Down Expand Up @@ -158,7 +163,12 @@ const Router = () => {
return (
<div id="app-container" className="flex h-screen" ref={bodyRef}>
<BodyVisibleContext.Provider value={bodyVisible}>
<RouterProvider router={router} />
<RouterProvider
router={router}
future={{
v7_startTransition: true,
}}
/>
</BodyVisibleContext.Provider>
</div>
);
Expand Down

0 comments on commit 0d4e6f9

Please sign in to comment.