@tanstack/solid-query
Advanced tools
Comparing version 5.20.5 to 5.21.1
@@ -70,2 +70,6 @@ import { notifyManager, QueryClient as QueryClient$1, MutationObserver, replaceEqualDeep, QueriesObserver, hydrate, QueryObserver, InfiniteQueryObserver } from '@tanstack/query-core'; | ||
refetch: void 0, | ||
// cast to fetchNextPage function should be safe, since we only remove it on the server, | ||
fetchNextPage: void 0, | ||
// cast to fetchPreviousPage function should be safe, since we only remove it on the server, | ||
fetchPreviousPage: void 0, | ||
// hydrate() expects a QueryState object, which is similar but not | ||
@@ -72,0 +76,0 @@ // quite the same as a QueryObserverResult object. Thus, for now, we're |
@@ -70,2 +70,6 @@ import { notifyManager, QueryClient as QueryClient$1, MutationObserver, replaceEqualDeep, QueriesObserver, hydrate, QueryObserver, InfiniteQueryObserver } from '@tanstack/query-core'; | ||
refetch: void 0, | ||
// cast to fetchNextPage function should be safe, since we only remove it on the server, | ||
fetchNextPage: void 0, | ||
// cast to fetchPreviousPage function should be safe, since we only remove it on the server, | ||
fetchPreviousPage: void 0, | ||
// hydrate() expects a QueryState object, which is similar but not | ||
@@ -72,0 +76,0 @@ // quite the same as a QueryObserverResult object. Thus, for now, we're |
{ | ||
"name": "@tanstack/solid-query", | ||
"version": "5.20.5", | ||
"version": "5.21.1", | ||
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -25,2 +25,3 @@ /* eslint-disable @typescript-eslint/no-unnecessary-condition */ | ||
import type { | ||
InfiniteQueryObserverResult, | ||
Query, | ||
@@ -51,3 +52,4 @@ QueryKey, | ||
type HydratableQueryState<TData, TError> = QueryObserverResult<TData, TError> & | ||
QueryState<TData, TError> | ||
QueryState<TData, TError> & | ||
InfiniteQueryObserverResult<TData, TError> | ||
@@ -67,3 +69,3 @@ /** | ||
result: QueryObserverResult<TDataHydratable, TError>, | ||
): HydratableQueryState<TDataHydratable, TError> => { | ||
) => { | ||
// Including the extra properties is only relevant on the server | ||
@@ -82,2 +84,14 @@ if (!isServer) return result as HydratableQueryState<TDataHydratable, TError> | ||
// cast to fetchNextPage function should be safe, since we only remove it on the server, | ||
fetchNextPage: undefined as unknown as HydratableQueryState< | ||
TDataHydratable, | ||
TError | ||
>['fetchNextPage'], | ||
// cast to fetchPreviousPage function should be safe, since we only remove it on the server, | ||
fetchPreviousPage: undefined as unknown as HydratableQueryState< | ||
TDataHydratable, | ||
TError | ||
>['fetchPreviousPage'], | ||
// hydrate() expects a QueryState object, which is similar but not | ||
@@ -93,3 +107,3 @@ // quite the same as a QueryObserverResult object. Thus, for now, we're | ||
fetchMeta: null, | ||
} | ||
} as HydratableQueryState<TDataHydratable, TError> | ||
} | ||
@@ -96,0 +110,0 @@ |
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
436054
13169