How to make server request on each route change - TanStack