using react query in a standalone hook - TanStack