Skip to content

Commit 6ee0671

Browse files
authored
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
1 parent ecdd927 commit 6ee0671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query-core/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ export interface QueryClientConfig {
816816
}
817817

818818
export interface DefaultOptions<TError = DefaultError> {
819-
queries?: QueryObserverOptions<unknown, TError>
819+
queries?: Omit<QueryObserverOptions<unknown, TError>, 'suspense'>
820820
mutations?: MutationObserverOptions<unknown, TError, unknown, unknown>
821821
}
822822

0 commit comments

Comments
 (0)