@tanstack/query-core
Advanced tools
Comparing version 5.55.2 to 5.55.3
@@ -184,7 +184,6 @@ import "./chunk-2HYBKCYP.js"; | ||
try { | ||
JSON.stringify(prevData); | ||
JSON.stringify(data); | ||
return replaceEqualDeep(prevData, data); | ||
} catch (error) { | ||
console.error( | ||
`StructuralSharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}` | ||
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}` | ||
); | ||
@@ -191,0 +190,0 @@ } |
@@ -182,7 +182,6 @@ // src/utils.ts | ||
try { | ||
JSON.stringify(prevData); | ||
JSON.stringify(data); | ||
return replaceEqualDeep(prevData, data); | ||
} catch (error) { | ||
console.error( | ||
`StructuralSharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}` | ||
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}` | ||
); | ||
@@ -189,0 +188,0 @@ } |
{ | ||
"name": "@tanstack/query-core", | ||
"version": "5.55.2", | ||
"version": "5.55.3", | ||
"description": "The framework agnostic core that powers TanStack Query", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -359,11 +359,9 @@ import type { | ||
try { | ||
JSON.stringify(prevData) | ||
JSON.stringify(data) | ||
return replaceEqualDeep(prevData, data) | ||
} catch (error) { | ||
console.error( | ||
`StructuralSharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`, | ||
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`, | ||
) | ||
} | ||
} | ||
// Structurally share data between prev and new data if needed | ||
@@ -370,0 +368,0 @@ return replaceEqualDeep(prevData, data) |
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
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
2033440
28883