Refetching data based on another query's response - TanStack