Fetch data only when first call was successful - TanStack