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