Ddfordp

remix-js/v2/remix-1-add-meta-v1-wrapper

No description available

remix.jsv2add meta wrapper
Public
11 executions

Run locally

npx codemod remix-js/v2/remix-1-add-meta-v1-wrapper

Using the metaV1 function, you can pass in the meta function's arguments and the same object it currently returns. This function will use the same merging logic to merge the leaf route's meta with its direct parent route meta before converting it to an array of meta descriptors usable in v2.

Before

ts

After

ts

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.