Skip to content

Commit

Permalink
fix(types): remove suspense from defaultOptions (#6301)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TkDodo committed Nov 5, 2023
1 parent ecdd927 commit 6ee0671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/query-core/src/types.ts
Expand Up @@ -816,7 +816,7 @@ export interface QueryClientConfig {
}

export interface DefaultOptions<TError = DefaultError> {
queries?: QueryObserverOptions<unknown, TError>
queries?: Omit<QueryObserverOptions<unknown, TError>, 'suspense'>
mutations?: MutationObserverOptions<unknown, TError, unknown, unknown>
}

Expand Down

0 comments on commit 6ee0671

Please sign in to comment.