// src/usePrefetchInfiniteQuery.tsx
import { useQueryClient } from "./QueryClientProvider.js";
function usePrefetchInfiniteQuery(options, queryClient) {
  const client = useQueryClient(queryClient);
  if (!client.getQueryState(options.queryKey)) {
    client.prefetchInfiniteQuery(options);
  }
}
export {
  usePrefetchInfiniteQuery
};//# sourceMappingURL=http://go/sourcemap/sourcemaps/042b3c1a4c53f2c3808067f519fbfc67b72cad80/node_modules/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.js.map