1 | import { invariant } from "../../utilities/globals/index.js";
|
2 | import * as React from "rehackt";
|
3 | import { getApolloContext } from "./ApolloContext.js";
|
4 | export 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 |