Skip to content

FeatureRequest: Add convenience function to find out if current route has a parent that is x #1686

Closed Answered by posva
WilliamStam asked this question in Help and Questions
Discussion options

You must be logged in to vote

You can already get the parent of a route in the matched array, in short, the order is from parent to child.
You can also use useLink() to get the active state of a route (same behavior as router-link).

I'm transferring to a question as it fits better the discussions 🙂

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by WilliamStam
Comment options

You must be logged in to vote
1 reply
@WilliamStam
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1685 on February 03, 2023 14:12.