We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
suspense
1 parent 1f9cf0b commit 6213ffaCopy full SHA for 6213ffa
packages/react-query/src/types.ts
@@ -43,7 +43,15 @@ export interface UseQueryOptions<
43
TData,
44
TQueryFnData,
45
TQueryKey
46
- > {}
+ > {
47
+ /**
48
+ * If set to `true`, the query will suspend when `status === 'loading'`
49
+ * and throw errors when `status === 'error'`.
50
+ * Defaults to `false`.
51
+ * @deprecated This option will be removed in the next major version.
52
+ */
53
+ suspense?: boolean
54
+}
55
56
export type UseSuspenseQueryOptions<
57
TQueryFnData = unknown,
0 commit comments