UNPKG

@shopify/react-graphql

Version:

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

17 lines (13 loc) 410 B
import { objectWithoutProperties as _objectWithoutProperties } from './_virtual/_rollupPluginBabelHelpers.js'; import useQuery from './hooks/query.mjs'; function Query(_ref) { let { children, query } = _ref, options = _objectWithoutProperties(_ref, ["children", "query"]); const opts = [options]; const result = useQuery(query, ...opts); return children(result); } export { Query };