Skip to content

Commit

Permalink
chore: Opt-in for v7_startTransition of React Router (#20553) (#20560)
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

Co-authored-by: Mikhail Shabarov <61410877+mshabarov@users.noreply.github.com>
  • Loading branch information
vaadin-bot and mshabarov authored Nov 27, 2024
1 parent bd16435 commit de0b5b6
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 de0b5b6

Please # to comment.