Codemod verified
Approved by the official project.
Remix-run/react
byjacobparis
Remix/Single Fetch/Recipe
Last update
Jul 24, 2024
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