React Router/7/Add V7 SkipActionStatusRevalidation Flag

/icons/calendar.svg

Last update

Dec 17, 2024

This transformation adds the necessary configuration to enable v7 features, specifically the v7_skipActionStatusRevalidation flag.

Before

const router = createBrowserRouter(routes);

After

const router = createBrowserRouter(routes, {
future: {
v7_skipActionStatusRevalidation: true,
},
});

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now