T
TanStack•2y ago
other-emerald

How to check for a hash match

Hello, I would like to know how to check a match for a hash on a specific pathname E.g.: check if /my_path#my_hash is matched I tried with matchRoute, without success I'm using React version of TanStack router Thanks 🙂
1 Reply
flat-fuchsia
flat-fuchsia•2y ago
You can get the hash off of the useRouterState hook. Maybe that'd help.

Did you find this page helpful?