UNPKG

@shopify/react-graphql

Version:

Tools for creating type-safe and asynchronous GraphQL components for React

15 lines (12 loc) 328 B
import React from 'react'; import { Query } from './Query.mjs'; function Prefetch({ ignoreCache, ...props }) { const fetchPolicy = ignoreCache ? 'network-only' : undefined; return /*#__PURE__*/React.createElement(Query, Object.assign({}, props, { fetchPolicy: fetchPolicy }), () => null); } export { Prefetch };