Remix-run/react
byjacobparis

Remix/Single Fetch/Enable Flag

/icons/calendar.svg

Last update

Jul 24, 2024

Remix / Single Fetch / Enable Flag

Enables the single fetch flag in the Remix Vite config.

Usage

You can use this codemod with the following command:

codemod remix/single-fetch/enable-flag --include="vite.config.ts"

Specifying the --include flag is optional but recommended so codemod doesn't have to look through your whole project.

Examples

return defineConfig({
+ future: {
+ unstable_singleFetch: true
+ }
})

Affected files

  • vite.config.ts

Build custom codemods

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

background illustrationGet Started Now