useQuery keeping the whole page in loading state - TanStack