@apollo/react-hooks
Advanced tools
Comparing version 0.1.0-beta.6 to 0.1.0-beta.7
@@ -670,3 +670,3 @@ 'use strict'; | ||
var client = React__default.useContext(reactCommon.getApolloContext()).client; | ||
process.env.NODE_ENV === "production" ? tsInvariant.invariant(!client) : tsInvariant.invariant(!client, 'No Apollo Client instance can be found. Please ensure that you ' + | ||
process.env.NODE_ENV === "production" ? tsInvariant.invariant(client) : tsInvariant.invariant(client, 'No Apollo Client instance can be found. Please ensure that you ' + | ||
'have called `ApolloProvider` higher up in your tree.'); | ||
@@ -673,0 +673,0 @@ return client; |
@@ -664,3 +664,3 @@ import { parser, operationName, DocumentType, getApolloContext } from '@apollo/react-common'; | ||
var client = React.useContext(getApolloContext()).client; | ||
process.env.NODE_ENV === "production" ? invariant(!client) : invariant(!client, 'No Apollo Client instance can be found. Please ensure that you ' + | ||
process.env.NODE_ENV === "production" ? invariant(client) : invariant(client, 'No Apollo Client instance can be found. Please ensure that you ' + | ||
'have called `ApolloProvider` higher up in your tree.'); | ||
@@ -667,0 +667,0 @@ return client; |
@@ -664,3 +664,3 @@ (function (global, factory) { | ||
var client = React__default.useContext(reactCommon.getApolloContext()).client; | ||
process.env.NODE_ENV === "production" ? tsInvariant.invariant(!client) : tsInvariant.invariant(!client, 'No Apollo Client instance can be found. Please ensure that you ' + | ||
process.env.NODE_ENV === "production" ? tsInvariant.invariant(client) : tsInvariant.invariant(client, 'No Apollo Client instance can be found. Please ensure that you ' + | ||
'have called `ApolloProvider` higher up in your tree.'); | ||
@@ -667,0 +667,0 @@ return client; |
@@ -1,1 +0,2 @@ | ||
export declare function useApolloClient(): import("apollo-client").default<object> | undefined; | ||
import ApolloClient from 'apollo-client'; | ||
export declare function useApolloClient(): ApolloClient<object>; |
@@ -6,3 +6,3 @@ import React from 'react'; | ||
var client = React.useContext(getApolloContext()).client; | ||
invariant(!client, 'No Apollo Client instance can be found. Please ensure that you ' + | ||
invariant(client, 'No Apollo Client instance can be found. Please ensure that you ' + | ||
'have called `ApolloProvider` higher up in your tree.'); | ||
@@ -9,0 +9,0 @@ return client; |
{ | ||
"name": "@apollo/react-hooks", | ||
"description": "React Apollo Hooks.", | ||
"version": "0.1.0-beta.6", | ||
"version": "0.1.0-beta.7", | ||
"author": "opensource@apollographql.com", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "15dea607a6caf71c0902c788fba43b323aabe12f" | ||
"gitHead": "dbdffdd7edc415f4813df0e6034ac68fe1d8cfa4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
268017
3221