Is it possible to stop a query refetch based on query data? - TanStack