How to check if useQuery data changed - TanStack