URL hash manipulation ??
Hey everyone,
This might seem like a stupid question, but how do you manipulate a url hash in tanstack router ?
Like how could I read, update and delete
hello from this url http://example.com/page#hello ?
Thanks in advance for any help 😀2 Replies
foreign-sapphire•2mo ago
I believe you can update with
useNavigate.
Or simply using <Link>
I think if you provide empty hash then it deletes it.
And you can read the hash using useRouterState(). router.location.hashfair-roseOP•2mo ago
what a perfect answer
thank you @konhi 🫶