-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[Bug]: useMatch does not decode params #11777
New issue
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
Comments
@brophdawg11 Is this a regression from #11199? |
yeah it looks like it - thanks for the repro! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of React Router are you using?
6.23.0
Steps to Reproduce
You can try it here: https://stackblitz.com/edit/github-mfpcog-zdd21p?file=src%2FApp.tsx
Or use this code:
Expected Behavior
I would expect
useMatch
to decode params the same asuseParams
does.If I call this URL
/user/bücherwurm
of the example above, I would expect the following output:Actual Behavior
It looks like
useMatch
does no more decode the URL Params.The example above will output
If you use 6.22.0 it works as expected, params are decoded by
useMatch
The text was updated successfully, but these errors were encountered: