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
Im so excited about the new unstable_useRoute feature in v 7.9.4.
as far as I know, it is a hook that behaves like useRouteLoaderData, but instead of only returning loaderData only, it also returns actionData. May I suggest that the name should be useRouteData.
Since it is all about data for the give Route Module. I think useRouteData is a better name for that specific purpose.
The current name also a little bit confusing when we compare it with existing useRoutes that has a very different purpose.
Hey @semet, thanks for the suggestion! Will you move this comment to #14417 where the original proposal was made. This helps us keep the conversation consolidated 🙂
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Im so excited about the new
unstable_useRoutefeature inv 7.9.4.as far as I know, it is a hook that behaves like
useRouteLoaderData, but instead of only returningloaderDataonly, it also returnsactionData. May I suggest that the name should beuseRouteData.Since it is all about data for the give Route Module. I think
useRouteDatais a better name for that specific purpose.The current name also a little bit confusing when we compare it with existing
useRoutesthat has a very different purpose.All reactions