@brainly-gene/apollo
Advanced tools
Comparing version 0.2.1-alpha.2 to 0.3.0
{ | ||
"name": "@brainly-gene/apollo", | ||
"version": "0.2.1-alpha.2", | ||
"version": "0.3.0", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -16,3 +16,4 @@ import { ApolloClient, ApolloQueryResult, NormalizedCacheObject } from '@apollo/client'; | ||
hasMore?: boolean | undefined; | ||
isFetchingNextPage?: boolean | undefined; | ||
}; | ||
export {}; |
@@ -16,2 +16,3 @@ import { ApolloQueryResult, ObservableQuery } from '@apollo/client'; | ||
hasMore?: boolean | undefined; | ||
isFetchingNextPage?: boolean | undefined; | ||
}; |
@@ -24,3 +24,3 @@ "use strict"; | ||
const response = (0, core_3.useObservableQuery)(newObservable); | ||
const isRouterEvent = (response === null || response === void 0 ? void 0 : response.type) === 'routeChanged'; | ||
const isRouterEvent = (response === null || response === void 0 ? void 0 : response.type) === 'routeChangeComplete'; | ||
const isServerValueOrRouterEventOrObservableValueIsEmpty = isRouterEvent || (0, core_1.isServer)() || !(response === null || response === void 0 ? void 0 : response.data); | ||
@@ -27,0 +27,0 @@ return { |
Sorry, the diff of this file is not supported yet
27863
380