How to keep navigation state in sync with active route? - TanStack