How to use react query data in another component without moving state up? - TanStack