D

remix-js/v2/remix-run-1-use-transition-to-use-navigation

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This hook is now called useNavigation to avoid confusion with the recent React hook by the same name. It also no longer has the type field and flattens the submission object into the navigation object itself.

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.