You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
476 B
11 lines
476 B
4 months ago
|
import { invariant } from "../../utilities/globals/index.js";
|
||
|
import * as React from "rehackt";
|
||
|
import { getApolloContext } from "./ApolloContext.js";
|
||
|
export var ApolloConsumer = function (props) {
|
||
|
var ApolloContext = getApolloContext();
|
||
|
return (React.createElement(ApolloContext.Consumer, null, function (context) {
|
||
|
invariant(context && context.client, 44);
|
||
|
return props.children(context.client);
|
||
|
}));
|
||
|
};
|
||
|
//# sourceMappingURL=ApolloConsumer.js.map
|