Remix/Single Fetch/Recipe
Codemod verified
Official codemod published by a verified account. Learn more.
Remix-run/react
Remix / Single Fetch / Recipe
This codemod runs all of the Single Fetch codemods in order
- Enable unstable_singleFetch flag
- Enable installGlobals nativeFetch
- Include single fetch typedefs
- Replace UIMatch and MetaArgs types
- Refactor json() to response arg
- Refactor defer() to response arg
- Refactor redirect() to response arg
- Refactor new Response() to response arg
Usage
You can use this codemod recipe with the following command:
codemod remix/single-fetch/recipe
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community