UNPKG

476 BJavaScriptView Raw
1import { invariant } from "../../utilities/globals/index.js";
2import * as React from "rehackt";
3import { getApolloContext } from "./ApolloContext.js";
4export var ApolloConsumer = function (props) {
5 var ApolloContext = getApolloContext();
6 return (React.createElement(ApolloContext.Consumer, null, function (context) {
7 invariant(context && context.client, 45);
8 return props.children(context.client);
9 }));
10};
11//# sourceMappingURL=ApolloConsumer.js.map
\No newline at end of file