Skip to content

Does a isRoute() composable exist ... ? #1820

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

You must be logged in to vote

It doesn't exist but you can create your own by scanning the array of routes router.getRoutes() which is already flattened or with router.resolve().

FYI that wouldn't be a composable, it just be a function.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants