How to wait for 'clean' queryCollection - TanStack