Is there a hook that checks if route is active? #1906
-
The way i currently handle this is like:
But it requires a cast to any, so i was wondering if there is a better way. Maybe we could extract this code into a separate hook and expose it as a public api? |
Beta Was this translation helpful? Give feedback.
Answered by
schiller-manuel
Jul 6, 2024
Replies: 1 comment 2 replies
-
I think this should be possible with |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
nklhtv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this should be possible with
useMatch
once #1738 lands, right?