From 6ee06719aedbf210d9c336b039f40b9667de4da0 Mon Sep 17 00:00:00 2001 From: Dominik Dorfmeister Date: Sun, 5 Nov 2023 16:19:29 +0100 Subject: [PATCH] fix(types): remove `suspense` from `defaultOptions` (#6301) we don't want to be able to set `suspense: true` globally like this anymore: React has `useSuspenseQuery` and other frameworks don't need it either --- packages/query-core/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/query-core/src/types.ts b/packages/query-core/src/types.ts index 57a164e2b7..35e839af23 100644 --- a/packages/query-core/src/types.ts +++ b/packages/query-core/src/types.ts @@ -816,7 +816,7 @@ export interface QueryClientConfig { } export interface DefaultOptions { - queries?: QueryObserverOptions + queries?: Omit, 'suspense'> mutations?: MutationObserverOptions }