@tanstack/query-core
Advanced tools
Comparing version 5.8.2 to 5.8.3
@@ -296,8 +296,8 @@ import { | ||
__privateSet(this, _currentResultOptions, this.options); | ||
if (__privateGet(this, _currentResultState).data !== void 0) { | ||
__privateSet(this, _lastQueryWithDefinedData, __privateGet(this, _currentQuery)); | ||
} | ||
if (shallowEqualObjects(nextResult, prevResult)) { | ||
return; | ||
} | ||
if (__privateGet(this, _currentResultState).data !== void 0) { | ||
__privateSet(this, _lastQueryWithDefinedData, __privateGet(this, _currentQuery)); | ||
} | ||
__privateSet(this, _currentResult, nextResult); | ||
@@ -304,0 +304,0 @@ const defaultNotifyOptions = {}; |
@@ -340,8 +340,8 @@ // src/queryObserver.ts | ||
this.#currentResultOptions = this.options; | ||
if (this.#currentResultState.data !== void 0) { | ||
this.#lastQueryWithDefinedData = this.#currentQuery; | ||
} | ||
if (shallowEqualObjects(nextResult, prevResult)) { | ||
return; | ||
} | ||
if (this.#currentResultState.data !== void 0) { | ||
this.#lastQueryWithDefinedData = this.#currentQuery; | ||
} | ||
this.#currentResult = nextResult; | ||
@@ -348,0 +348,0 @@ const defaultNotifyOptions = {}; |
{ | ||
"name": "@tanstack/query-core", | ||
"version": "5.8.2", | ||
"version": "5.8.3", | ||
"description": "The framework agnostic core that powers TanStack Query", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -595,2 +595,6 @@ import { | ||
if (this.#currentResultState.data !== undefined) { | ||
this.#lastQueryWithDefinedData = this.#currentQuery | ||
} | ||
// Only notify and update result if something has changed | ||
@@ -601,5 +605,2 @@ if (shallowEqualObjects(nextResult, prevResult)) { | ||
if (this.#currentResultState.data !== undefined) { | ||
this.#lastQueryWithDefinedData = this.#currentQuery | ||
} | ||
this.#currentResult = nextResult | ||
@@ -606,0 +607,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
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
1793829