@tanstack/react-query
Advanced tools
Comparing version
@@ -13,2 +13,9 @@ import type * as React from 'react'; | ||
export interface UseQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends UseBaseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> { | ||
/** | ||
* If set to `true`, the query will suspend when `status === 'loading'` | ||
* and throw errors when `status === 'error'`. | ||
* Defaults to `false`. | ||
* @deprecated This option will be removed in the next major version. | ||
*/ | ||
suspense?: boolean; | ||
} | ||
@@ -15,0 +22,0 @@ export declare type UseSuspenseQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'enabled' | 'useErrorBoundary' | 'suspense' | 'placeholderData' | 'networkMode' | 'onSuccess' | 'onError' | 'onSettled' | 'getPreviousPageParam' | 'getNextPageParam'>; |
{ | ||
"name": "@tanstack/react-query", | ||
"version": "4.40.0", | ||
"version": "4.40.1", | ||
"description": "Hooks for managing, caching and syncing asynchronous and remote data in React", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -46,3 +46,11 @@ /* istanbul ignore file */ | ||
TQueryKey | ||
> {} | ||
> { | ||
/** | ||
* If set to `true`, the query will suspend when `status === 'loading'` | ||
* and throw errors when `status === 'error'`. | ||
* Defaults to `false`. | ||
* @deprecated This option will be removed in the next major version. | ||
*/ | ||
suspense?: boolean | ||
} | ||
@@ -49,0 +57,0 @@ export type UseSuspenseQueryOptions< |
1437131
2.26%276
17.45%20302
0.07%