Confused between older and newer usage of useQuery - TanStack