Replies: 1 comment 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the new or updated feature that you are suggesting?
Would be useful to be able to get the entire loader data even including parent route from a single hook.Example:
Why should this feature be included?
Usually loader are used to check for authorization at the top level or for other things, may want to use information returned from the loaders to the components, I know there's an option to use useRouteLoaderData to get the root route's loader data using an ID, but there could be multiple parents etc, I feel like this could be used very often.Would love to hear some feedback and see if you think this could be useful.
Beta Was this translation helpful? Give feedback.
All reactions