Getting loader data from parent route
So I see that it's possible to get loader data from parent routes but I have some questions.
1. In the component, is this the only way to get data from parent route AND current route?
2. In
meta
how do I access this loader data from parent route?
2 Replies
rival-black•13mo ago
about 1)
you can use
useParentMatches
as well
about 2)
you can access matches
in meta
as well
conscious-sapphireOP•13mo ago
Ah cool, thanks! I wasn’t really sure how to use those properties. Will give it a try