@tanstack/react-query
Advanced tools
Comparing version 5.59.0 to 5.59.3
@@ -42,3 +42,3 @@ "use client"; | ||
useClearResetErrorBoundary(errorResetBoundary); | ||
const isNewCacheEntry = !client.getQueryState(options.queryKey); | ||
const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash); | ||
const [observer] = React.useState( | ||
@@ -45,0 +45,0 @@ () => new Observer( |
@@ -40,3 +40,3 @@ "use client"; | ||
useClearResetErrorBoundary(errorResetBoundary); | ||
const isNewCacheEntry = !client.getQueryState(options.queryKey); | ||
const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash); | ||
const [observer] = React.useState( | ||
@@ -43,0 +43,0 @@ () => new Observer( |
{ | ||
"name": "@tanstack/react-query", | ||
"version": "5.59.0", | ||
"version": "5.59.3", | ||
"description": "Hooks for managing, caching and syncing asynchronous and remote data in React", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -73,3 +73,5 @@ 'use client' | ||
// this needs to be invoked before creating the Observer because that can create a cache entry | ||
const isNewCacheEntry = !client.getQueryState(options.queryKey) | ||
const isNewCacheEntry = !client | ||
.getQueryCache() | ||
.get(defaultedOptions.queryHash) | ||
@@ -76,0 +78,0 @@ const [observer] = React.useState( |
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
1146840
22990
6