Critique TanStack Router and TanStack Query usage for type safety, data loading correctness, and cache management