@tanstack/solid-query
Advanced tools
Comparing version 5.29.0 to 5.29.3
@@ -134,3 +134,3 @@ import { notifyManager, QueryClient as QueryClient$1, MutationObserver, replaceEqualDeep, QueriesObserver, hydrate, QueryObserver, InfiniteQueryObserver } from '@tanstack/query-core'; | ||
const reconcileOptions = obs.options.reconcile; | ||
if (queryResource()?.data && result.data && !queryResource.loading) { | ||
if (!queryResource.error && queryResource()?.data && result.data && !queryResource.loading) { | ||
setState((store) => { | ||
@@ -206,3 +206,3 @@ return reconcileFn( | ||
const newOptions = { ...initialOptions }; | ||
if (initialOptions.staleTime || !initialOptions.initialData) { | ||
if ((initialOptions.staleTime || !initialOptions.initialData) && info.value) { | ||
newOptions.refetchOnMount = false; | ||
@@ -209,0 +209,0 @@ } |
@@ -134,3 +134,3 @@ import { notifyManager, QueryClient as QueryClient$1, MutationObserver, replaceEqualDeep, QueriesObserver, hydrate, QueryObserver, InfiniteQueryObserver } from '@tanstack/query-core'; | ||
const reconcileOptions = obs.options.reconcile; | ||
if (queryResource()?.data && result.data && !queryResource.loading) { | ||
if (!queryResource.error && queryResource()?.data && result.data && !queryResource.loading) { | ||
setState((store) => { | ||
@@ -206,3 +206,3 @@ return reconcileFn( | ||
const newOptions = { ...initialOptions }; | ||
if (initialOptions.staleTime || !initialOptions.initialData) { | ||
if ((initialOptions.staleTime || !initialOptions.initialData) && info.value) { | ||
newOptions.refetchOnMount = false; | ||
@@ -209,0 +209,0 @@ } |
{ | ||
"name": "@tanstack/solid-query", | ||
"version": "5.29.0", | ||
"version": "5.29.3", | ||
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -190,3 +190,8 @@ // Had to disable the lint rule because isServer type is defined as false | ||
// This could happen when placeholderData/initialData is defined | ||
if (queryResource()?.data && result.data && !queryResource.loading) { | ||
if ( | ||
!queryResource.error && | ||
queryResource()?.data && | ||
result.data && | ||
!queryResource.loading | ||
) { | ||
setState((store) => { | ||
@@ -277,3 +282,6 @@ return reconcileFn( | ||
const newOptions = { ...initialOptions } | ||
if (initialOptions.staleTime || !initialOptions.initialData) { | ||
if ( | ||
(initialOptions.staleTime || !initialOptions.initialData) && | ||
info.value | ||
) { | ||
newOptions.refetchOnMount = false | ||
@@ -280,0 +288,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
438748
13252