How to handle hash from Link component
Hi guys, maybe someone can tell me how to handle hashes from Link hash prop? I didn't find any event for it. I'm using react-router beta 83

1 Reply
generous-apricotOP•3y ago
I found that I can get currentLocation from
The hash is changed by the react-router Link component, but is not updated in the state. It's still '/'
I did the temporary solution, but still waiting for any info, how more correctly implement it via @tanstack/react-router
Because now it's just a workaround
It's the same as scrollToTop after route change 🙂
Looks weird