useMatch, but it somehow works on multiple strings #10396
william-lubelski-toast
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
we have a few use cases (usually migrating old navigation) where we need to match on a bunch of strings. ye-old rule of hooks means useMatch doesn't quite work, so we've often built something like this:
we're happy to keep using this userland solution but the little lint warning in my editor told me to hit you all up if I was doing something with
useLocation
so I am doing just thatBeta Was this translation helpful? Give feedback.
All reactions