T
TanStack7mo ago
eastern-cyan

useLocation re-renders before navigating status

Hi, is there any update on this issue? It’s causing my companie’s project a lot of noise in our monitors. https://github.com/TanStack/router/issues/3110
GitHub
useLocation re-renders before navigating · Issue #3110 · TanSta...
This might not be a bug, but many people seem to get tripped by this. It might just be a documentation issue for people coming from react-router-dom who are used to using useLocation for everything...
2 Replies
fascinating-indigo
fascinating-indigo7mo ago
no can't you switch to another hook ?
absent-sapphire
absent-sapphire7mo ago
Maybe we should make it clearer that this issue is a documentation issue and not a bug

Did you find this page helpful?