Access parent loader data? #2152
Unanswered
blitzbohne
asked this question in
Q&A
Replies: 1 comment 2 replies
-
you can use the https://tanstack.com/router/v1/docs/framework/react/api/router/useParentMatchesHook |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
If we for example have a root-route with its own loader we can await it in the child routes by awaiting parentMatchPromise.
However the question is how can we access the actual loaded data from the root/parent route within the child route's loader? The parentMatchPromise returns void.
Alex
Beta Was this translation helpful? Give feedback.
All reactions