add context to react relay

see https://github.com/facebook/relay/blob/master/packages/react-relay/index.js#L13
This commit is contained in:
Giacomo Tagliabue
2019-03-26 12:00:20 -04:00
committed by GitHub
parent 716ad14d15
commit 555bcfe401

View File

@@ -17,6 +17,8 @@
export {
commitLocalUpdate,
commitRelayModernMutation as commitMutation,
CRelayContext,
Environment,
fetchRelayModernQuery as fetchQuery,
GraphQLTaggedNode,
requestRelaySubscription as requestSubscription,
@@ -191,3 +193,9 @@ export function createRefetchContainer<P>(
fragmentSpec: RelayRuntimeTypes.GraphQLTaggedNode | GeneratedNodeMap,
taggedNode: RelayRuntimeTypes.GraphQLTaggedNode
): RelayContainer<P>;
// ~~~~~~~~~~~~~~~~~~~~~
// Context
// ~~~~~~~~~~~~~~~~~~~~~
export const ReactRelayContext: Context<CRelayContext<Environment>>;