@equinor/fusion-query
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -45,4 +45,4 @@ import { original } from 'immer'; | ||
const { transaction, reason } = action.payload; | ||
const request = Object.assign({}, original(state[transaction])); | ||
if (request) { | ||
if (state[transaction]) { | ||
const request = Object.assign({}, original(state[transaction])); | ||
request.task.error(new QueryClientError('abort', { | ||
@@ -69,5 +69,4 @@ request, | ||
const { transaction } = meta.request.meta; | ||
const request = Object.assign({}, original(state[transaction])); | ||
if (request) { | ||
console.log(payload, payload.cause); | ||
if (state[transaction]) { | ||
const request = Object.assign({}, original(state[transaction])); | ||
request.task.error(new QueryClientError('error', { | ||
@@ -74,0 +73,0 @@ request, |
@@ -73,3 +73,3 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
subscriber.add(() => { | ||
__classPrivateFieldGet(this, _Query_client, "f").cancel(transaction); | ||
setTimeout(() => __classPrivateFieldGet(this, _Query_client, "f").cancel(transaction)); | ||
}); | ||
@@ -93,2 +93,3 @@ })), filterQueryTaskComplete(), takeWhile(() => !__classPrivateFieldGet(this, _Query_client, "f").closed)) | ||
const ref = __classPrivateFieldGet(this, _Query_generateCacheKey, "f").call(this, args); | ||
console.log(ref); | ||
const task = (_a = __classPrivateFieldGet(this, _Query_client, "f").getTaskByRef(ref)) !== null && _a !== void 0 ? _a : this._createTask(ref, args, options); | ||
@@ -95,0 +96,0 @@ return task; |
{ | ||
"name": "@equinor/fusion-query", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "WIP", | ||
@@ -80,3 +80,3 @@ "private": false, | ||
}, | ||
"gitHead": "b6b023270dbbffd06c756fa22d16840a249a47b3" | ||
"gitHead": "7c03916da17e754a65ec93ea06f8e1bb3e2412ab" | ||
} |
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
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
162071