@tanstack/react-query
Advanced tools
Comparing version 5.66.10 to 5.66.11
@@ -38,2 +38,9 @@ "use client"; | ||
); | ||
if (process.env.NODE_ENV !== "production") { | ||
if (!defaultedOptions.queryFn) { | ||
console.error( | ||
`[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function` | ||
); | ||
} | ||
} | ||
defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic"; | ||
@@ -40,0 +47,0 @@ ensureSuspenseTimers(defaultedOptions); |
@@ -36,2 +36,9 @@ "use client"; | ||
); | ||
if (process.env.NODE_ENV !== "production") { | ||
if (!defaultedOptions.queryFn) { | ||
console.error( | ||
`[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function` | ||
); | ||
} | ||
} | ||
defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic"; | ||
@@ -38,0 +45,0 @@ ensureSuspenseTimers(defaultedOptions); |
{ | ||
"name": "@tanstack/react-query", | ||
"version": "5.66.10", | ||
"version": "5.66.11", | ||
"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.4" | ||
"@tanstack/query-core": "5.66.11" | ||
}, | ||
@@ -60,3 +60,3 @@ "devDependencies": { | ||
"react-error-boundary": "^4.1.2", | ||
"@tanstack/query-persist-client-core": "5.66.4" | ||
"@tanstack/query-persist-client-core": "5.66.11" | ||
}, | ||
@@ -63,0 +63,0 @@ "peerDependencies": { |
@@ -62,2 +62,10 @@ 'use client' | ||
if (process.env.NODE_ENV !== 'production') { | ||
if (!defaultedOptions.queryFn) { | ||
console.error( | ||
`[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`, | ||
) | ||
} | ||
} | ||
// Make sure results are optimistically set in fetching state before subscribing or updating options | ||
@@ -64,0 +72,0 @@ defaultedOptions._optimisticResults = isRestoring |
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
727824
8806
20
+ Added@tanstack/query-core@5.66.11(transitive)
- Removed@tanstack/query-core@5.66.4(transitive)
Updated@tanstack/query-core@5.66.11