Practicality of useCurrentMatches
for breadcrumb functionality
#500
developerdizzle
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the docs for useCurrentMatches, there's an example for retrieving breadcrumb information:
But, consider a typical route configuration:
In this case,
breadcrumbs
will only consist of one item (the single-matched route). Nesting routes is the way to get multiple routes and breadcrumb data, but it's not really practical due to how nesting/layouts work:As far as I can tell, this means that, in practice, each route's
info
needs to have its full ancestry of breadcrumb data in it, which makesuseCurrentMatches
less useful.The discussion I'd like to have is around the questions:
Beta Was this translation helpful? Give feedback.
All reactions