How to implement Algolia with react-query - TanStack