We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
routes/about.tsx
routes/$var
When visiting routes/about.tsx, isOnVarRoute is true here
isOnVarRoute
const matchRoute = useMatchRoute(); const isOnVarRoute = Boolean(matchRoute({ to: '/$var' }));
https://stackblitz.com/edit/github-pimzz4?file=src%2Froutes%2F__root.tsx
About
isOn$varRoute
/about
I expect useMatchRoute to not match static paths in dynamic segments.
useMatchRoute
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When visiting
routes/about.tsx
,isOnVarRoute
is true hereYour Example Website or App
https://stackblitz.com/edit/github-pimzz4?file=src%2Froutes%2F__root.tsx
Steps to Reproduce the Bug or Issue
About
linkisOn$varRoute
value in the header. It says true, even though we're visiting the non-dynamic route/about
.Expected behavior
I expect
useMatchRoute
to not match static paths in dynamic segments.Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: