Skip to content

Commit

Permalink
chore: Opt-in for v7_startTransition of React Router
Browse files Browse the repository at this point in the history
Preparations for React Router v7, opts-in a new feature to avoid warnings in console.

Related-to #20527
  • Loading branch information
mshabarov committed Nov 27, 2024
1 parent 380b15f commit f90c778
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { RouterProvider } from 'react-router-dom';
import { router } from '%routesJsImportPath%';

function App() {
return <RouterProvider router={router} />;
return <RouterProvider router={router} future={{ v7_startTransition: true }} />;
}

const outlet = document.getElementById('outlet')!;
Expand Down

0 comments on commit f90c778

Please sign in to comment.