@tanstack/react-query
Advanced tools
Comparing version 5.66.3 to 5.66.4
@@ -7,2 +7,5 @@ "use client"; | ||
import { useQueryClient } from "./QueryClientProvider.js"; | ||
var hasProperty = (obj, key) => { | ||
return typeof obj === "object" && obj !== null && key in obj; | ||
}; | ||
var HydrationBoundary = ({ | ||
@@ -32,3 +35,4 @@ children, | ||
} else { | ||
const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt; | ||
const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt || // RSC special serialized then-able chunks | ||
hasProperty(dehydratedQuery.promise, "status") && hasProperty(existingQuery.promise, "status") && dehydratedQuery.promise.status !== existingQuery.promise.status; | ||
const queryAlreadyQueued = hydrationQueue == null ? void 0 : hydrationQueue.find( | ||
@@ -35,0 +39,0 @@ (query) => query.queryHash === dehydratedQuery.queryHash |
@@ -7,2 +7,5 @@ "use client"; | ||
import { useQueryClient } from "./QueryClientProvider.js"; | ||
var hasProperty = (obj, key) => { | ||
return typeof obj === "object" && obj !== null && key in obj; | ||
}; | ||
var HydrationBoundary = ({ | ||
@@ -32,3 +35,4 @@ children, | ||
} else { | ||
const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt; | ||
const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt || // RSC special serialized then-able chunks | ||
hasProperty(dehydratedQuery.promise, "status") && hasProperty(existingQuery.promise, "status") && dehydratedQuery.promise.status !== existingQuery.promise.status; | ||
const queryAlreadyQueued = hydrationQueue?.find( | ||
@@ -35,0 +39,0 @@ (query) => query.queryHash === dehydratedQuery.queryHash |
{ | ||
"name": "@tanstack/react-query", | ||
"version": "5.66.3", | ||
"version": "5.66.4", | ||
"description": "Hooks for managing, caching and syncing asynchronous and remote data in React", | ||
@@ -46,3 +46,3 @@ "author": "tannerlinsley", | ||
"dependencies": { | ||
"@tanstack/query-core": "5.66.3" | ||
"@tanstack/query-core": "5.66.4" | ||
}, | ||
@@ -60,3 +60,3 @@ "devDependencies": { | ||
"react-error-boundary": "^4.1.2", | ||
"@tanstack/query-persist-client-core": "5.66.3" | ||
"@tanstack/query-persist-client-core": "5.66.4" | ||
}, | ||
@@ -63,0 +63,0 @@ "peerDependencies": { |
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
725526
8762
+ Added@tanstack/query-core@5.66.4(transitive)
- Removed@tanstack/query-core@5.66.3(transitive)
Updated@tanstack/query-core@5.66.4