@shopify/react-graphql
Advanced tools
Comparing version 0.0.0-snapshot-20220802200234 to 0.0.0-snapshot-20220804203601
@@ -37,13 +37,10 @@ 'use strict'; | ||
this.operations.add(promise); | ||
return new apolloLink.Observable(observer => { | ||
return nextLink(operation).subscribe({ | ||
complete() { | ||
observer.complete(); | ||
operationDone(); | ||
}, | ||
const observable = nextLink(operation); | ||
observable.subscribe({ | ||
complete() { | ||
operationDone(); | ||
} | ||
next: observer.next.bind(observer), | ||
error: observer.error.bind(observer) | ||
}); | ||
}); | ||
return observable; | ||
} | ||
@@ -50,0 +47,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { ApolloLink, Operation, NextLink, Observable, FetchResult } from 'apollo-link'; | ||
import { ApolloLink, Operation, NextLink } from 'apollo-link'; | ||
export declare function createSsrExtractableLink(): SsrExtractableLink; | ||
@@ -6,3 +6,3 @@ export declare class SsrExtractableLink extends ApolloLink { | ||
resolveAll<T>(then: () => T): Promise<T> | T; | ||
request(operation: Operation, nextLink?: NextLink): Observable<FetchResult<{ | ||
request(operation: Operation, nextLink?: NextLink): import("apollo-link").Observable<import("apollo-link").FetchResult<{ | ||
[key: string]: any; | ||
@@ -9,0 +9,0 @@ }, Record<string, any>, Record<string, any>>>; |
{ | ||
"name": "@shopify/react-graphql", | ||
"version": "0.0.0-snapshot-20220802200234", | ||
"version": "0.0.0-snapshot-20220804203601", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Tools for creating type-safe and asynchronous GraphQL components for React", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
86640
1203