useQuery not updating after query key changing in custom hook - TanStack