@operato/graphql
Advanced tools
Comparing version 1.3.2 to 1.3.6
@@ -6,2 +6,11 @@ # Change Log | ||
### [1.3.6](https://github.com/hatiolab/operato/compare/v1.3.5...v1.3.6) (2023-06-17) | ||
### :bug: Bug Fix | ||
* busy progress bar does not stop when an error occurs ([85bbbb9](https://github.com/hatiolab/operato/commit/85bbbb9092387c3f90b656d1126f02ebb10841e2)) | ||
### [1.3.2](https://github.com/hatiolab/operato/compare/v1.3.1...v1.3.2) (2023-06-13) | ||
@@ -8,0 +17,0 @@ |
@@ -5,1 +5,2 @@ import { ApolloLink } from '@apollo/client/core'; | ||
export declare function resetActiveRequestCounterCallback(): void; | ||
export declare function decreaseActiveRequestCounter(): void; |
@@ -17,2 +17,5 @@ import { ApolloLink } from '@apollo/client/core'; | ||
} | ||
export function decreaseActiveRequestCounter() { | ||
callback && callback(--activeRequests); | ||
} | ||
//# sourceMappingURL=active-request-counter-link.js.map |
@@ -7,3 +7,3 @@ import { createUploadLink } from 'apollo-upload-client'; | ||
import { getMainDefinition } from '@apollo/client/utilities'; | ||
import { activeRequestCounterLink } from './active-request-counter-link'; | ||
import { activeRequestCounterLink, decreaseActiveRequestCounter } from './active-request-counter-link'; | ||
export const GRAPHQL_URI = '/graphql'; | ||
@@ -25,2 +25,3 @@ export const SUBSCRIPTION_URI = GRAPHQL_URI; | ||
const ERROR_HANDLER = ({ operation, graphQLErrors, networkError }) => { | ||
decreaseActiveRequestCounter(); | ||
if (graphQLErrors) { | ||
@@ -27,0 +28,0 @@ document.dispatchEvent(new CustomEvent('notify', { |
@@ -5,3 +5,3 @@ { | ||
"author": "heartyoh@hatiolab.com", | ||
"version": "1.3.2", | ||
"version": "1.3.6", | ||
"main": "dist/src/index.js", | ||
@@ -113,3 +113,3 @@ "module": "dist/src/index.js", | ||
}, | ||
"gitHead": "956de896ec0e99f6673a694d11adf9879649dd68" | ||
"gitHead": "76311585099d9b484bf32b2c54762928a7df323b" | ||
} |
@@ -24,1 +24,5 @@ import { ApolloLink } from '@apollo/client/core' | ||
} | ||
export function decreaseActiveRequestCounter() { | ||
callback && callback(--activeRequests) | ||
} |
@@ -18,3 +18,3 @@ import { createUploadLink } from 'apollo-upload-client' | ||
import { getMainDefinition } from '@apollo/client/utilities' | ||
import { activeRequestCounterLink } from './active-request-counter-link' | ||
import { activeRequestCounterLink, decreaseActiveRequestCounter } from './active-request-counter-link' | ||
@@ -39,2 +39,4 @@ export const GRAPHQL_URI = '/graphql' | ||
const ERROR_HANDLER: ErrorLink.ErrorHandler = ({ operation, graphQLErrors, networkError }) => { | ||
decreaseActiveRequestCounter() | ||
if (graphQLErrors) { | ||
@@ -41,0 +43,0 @@ document.dispatchEvent( |
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
152949
860