T
TanStack2y ago
helpful-purple

useMatchRoute

If i understand correctly using matchRoute and setting fuzzy true, would mean if I am lets say in route /posts/10, and set the
matchRoute({ to: '/posts', fuzzy: true })
matchRoute({ to: '/posts', fuzzy: true })
then it should return params, meaning that the route matches ? But I even made a fork of one of the demos and it always seems to return false. https://codesandbox.io/p/devbox/upbeat-dan-fvfhxd
2 Replies
metropolitan-bronze
metropolitan-bronze2y ago
GitHub
Release v1.4.5 · TanStack/router
Version 1.4.5 - 1/14/2024, 7:44 PM Changes Fix useMatchRoute was not respecting options fuzzy and includeSearch (#990) (2e87eba) by Manuel Schiller Packages @tanstack/history@1.4.5 @tanstack/rea...
helpful-purple
helpful-purpleOP2y ago
Awesome thanks !

Did you find this page helpful?