@tanstack/solid-query
Advanced tools
Comparing version 5.0.0-rc.6 to 5.0.0-rc.8
@@ -85,3 +85,3 @@ import { notifyManager, QueryClient as QueryClient$1, MutationObserver, QueriesObserver, hydrate, QueryObserver, InfiniteQueryObserver } from '@tanstack/query-core'; | ||
const defaultedOptions = createMemo( | ||
() => mergeProps(client().defaultQueryOptions(options()), { | ||
() => mergeProps(client()?.defaultQueryOptions(options()) || {}, { | ||
get _optimisticResults() { | ||
@@ -127,3 +127,3 @@ return isRestoring() ? "isRestoring" : "optimistic"; | ||
result, | ||
reconcileOptions === void 0 ? "id" : reconcileOptions | ||
reconcileOptions === void 0 ? false : reconcileOptions | ||
); | ||
@@ -130,0 +130,0 @@ }); |
@@ -12,3 +12,3 @@ import { DefaultError, QueryKey, QueryObserverOptions as QueryObserverOptions$1, InfiniteQueryObserverOptions as InfiniteQueryObserverOptions$1, DefaultOptions as DefaultOptions$1, QueryClientConfig as QueryClientConfig$1, QueryClient as QueryClient$1, WithRequired, QueryObserverResult, DefinedQueryObserverResult, InfiniteQueryObserverResult, MutationObserverOptions, MutateFunction, MutationObserverResult, QueryFilters, InfiniteData, MutationFilters, QueriesPlaceholderDataFunction, QueryFunction } from '@tanstack/query-core'; | ||
* Set this to a function which accepts the old and new data and returns resolved data of the same type to implement custom reconciliation logic. | ||
* Defaults reconciliation key to `id`. | ||
* Defaults reconciliation to false. | ||
*/ | ||
@@ -22,3 +22,3 @@ reconcile?: string | false | ((oldData: TData | undefined, newData: TData) => TData); | ||
* Set this to a function which accepts the old and new data and returns resolved data of the same type to implement custom reconciliation logic. | ||
* Defaults reconciliation key to `id`. | ||
* Defaults reconciliation to false. | ||
*/ | ||
@@ -25,0 +25,0 @@ reconcile?: string | false | ((oldData: TData | undefined, newData: TData) => TData); |
@@ -85,3 +85,3 @@ import { notifyManager, QueryClient as QueryClient$1, MutationObserver, QueriesObserver, hydrate, QueryObserver, InfiniteQueryObserver } from '@tanstack/query-core'; | ||
const defaultedOptions = createMemo( | ||
() => mergeProps(client().defaultQueryOptions(options()), { | ||
() => mergeProps(client()?.defaultQueryOptions(options()) || {}, { | ||
get _optimisticResults() { | ||
@@ -127,3 +127,3 @@ return isRestoring() ? "isRestoring" : "optimistic"; | ||
result, | ||
reconcileOptions === void 0 ? "id" : reconcileOptions | ||
reconcileOptions === void 0 ? false : reconcileOptions | ||
); | ||
@@ -130,0 +130,0 @@ }); |
{ | ||
"name": "@tanstack/solid-query", | ||
"version": "5.0.0-rc.6", | ||
"version": "5.0.0-rc.8", | ||
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -114,3 +114,3 @@ /* eslint-disable @typescript-eslint/no-unnecessary-condition */ | ||
const defaultedOptions = createMemo(() => | ||
mergeProps(client().defaultQueryOptions(options()), { | ||
mergeProps(client()?.defaultQueryOptions(options()) || {}, { | ||
get _optimisticResults() { | ||
@@ -171,3 +171,3 @@ return isRestoring() ? 'isRestoring' : 'optimistic' | ||
result, | ||
reconcileOptions === undefined ? 'id' : reconcileOptions, | ||
reconcileOptions === undefined ? false : reconcileOptions, | ||
) | ||
@@ -174,0 +174,0 @@ }) |
@@ -33,3 +33,3 @@ import { QueryClient as QueryCoreClient } from '@tanstack/query-core' | ||
* Set this to a function which accepts the old and new data and returns resolved data of the same type to implement custom reconciliation logic. | ||
* Defaults reconciliation key to `id`. | ||
* Defaults reconciliation to false. | ||
*/ | ||
@@ -64,3 +64,3 @@ reconcile?: | ||
* Set this to a function which accepts the old and new data and returns resolved data of the same type to implement custom reconciliation logic. | ||
* Defaults reconciliation key to `id`. | ||
* Defaults reconciliation to false. | ||
*/ | ||
@@ -67,0 +67,0 @@ reconcile?: |
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
434384
13245