Remix/Single Fetch/Enable Flag
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
Remix-run/react
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