Navlink redirecting to respective routes (url changes) but UI not updating - TanStack