// 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/fc2563ec93d793fc275eef734405a4fdf8b47b20/node_modules/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.js.map