Accessing react query without hooks - TanStack