@tanstack/query-core
Advanced tools
Comparing version 5.20.4 to 5.20.5
@@ -43,5 +43,6 @@ import { | ||
} | ||
(_a = __privateGet(this, _currentMutation)) == null ? void 0 : _a.setOptions(this.options); | ||
if ((prevOptions == null ? void 0 : prevOptions.mutationKey) && this.options.mutationKey && hashKey(prevOptions.mutationKey) !== hashKey(this.options.mutationKey)) { | ||
this.reset(); | ||
} else { | ||
(_a = __privateGet(this, _currentMutation)) == null ? void 0 : _a.setOptions(this.options); | ||
} | ||
@@ -48,0 +49,0 @@ } |
@@ -32,5 +32,6 @@ // src/mutationObserver.ts | ||
} | ||
this.#currentMutation?.setOptions(this.options); | ||
if (prevOptions?.mutationKey && this.options.mutationKey && hashKey(prevOptions.mutationKey) !== hashKey(this.options.mutationKey)) { | ||
this.reset(); | ||
} else { | ||
this.#currentMutation?.setOptions(this.options); | ||
} | ||
@@ -37,0 +38,0 @@ } |
{ | ||
"name": "@tanstack/query-core", | ||
"version": "5.20.4", | ||
"version": "5.20.5", | ||
"description": "The framework agnostic core that powers TanStack Query", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -69,3 +69,2 @@ import { getDefaultState } from './mutation' | ||
} | ||
this.#currentMutation?.setOptions(this.options) | ||
@@ -78,2 +77,4 @@ if ( | ||
this.reset() | ||
} else { | ||
this.#currentMutation?.setOptions(this.options) | ||
} | ||
@@ -80,0 +81,0 @@ } |
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
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
Sorry, the diff of this file is not supported yet
1815367
25831