#Tanstack Router: Get the current location/path
4 messages · Page 1 of 1 (latest)
how about:
const location = useRouterState({ select: (s) => s.location })
ow thx, Is it normal if the doc doesn't talk about hooks at all? 🥲
I also just saw that there was the useRouter hook with:
const r = useRouter();
r.state.location;
which is not mentioned either I believe
we are in the process of updating the docs, stay tuned