You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is kinda big but opens up a lot of use cases,
- can build better pending navigation UI with useTransition telling app more detailed information (state, type)
- replaces usePendingFormSubmit and usePendingLocation
- actually aborts stale submissions/loads
- fixes bugs around interrupted submissions/navigations
- actions can return data now
- super useful for form validation, no more screwing around with sessions
- allows apps to call loaders and actions outside of navigation
- manages cancellation of stale submissions and loads
- reloads route data after actions
- commits the freshest reloaded data along the way when there are multiple inflight
allows route modules to decide if they should reload or not
- after submissions
- when the search params change
- when the same href is navigated to
other stuff
- reloads route data when the same href is navigated to
- does not create ghost history entries on interrupted navigation
These old hooks still work, but have been deprecated for the new hooks.
- useRouteData -> useLoaderData
- usePendingFormSubmit -> useTransition().submission
- usePendingLocation -> useTransition().location
Also includes a helping of docs updates
Closes#169, #151, #175, #128, #54, #208
0 commit comments