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.
1 parent 2d98bf2 commit 5c6cce6Copy full SHA for 5c6cce6
src/core/queryObserver.ts
@@ -138,6 +138,13 @@ export class QueryObserver<
138
139
this.options = this.client.defaultQueryObserverOptions(options)
140
141
+ if (
142
+ typeof this.options.enabled !== 'undefined' &&
143
+ typeof this.options.enabled !== 'boolean'
144
+ ) {
145
+ throw new Error('Expected enabled to be a boolean')
146
+ }
147
+
148
// Keep previous query key if the user does not supply one
149
if (!this.options.queryKey) {
150
this.options.queryKey = prevOptions.queryKey
0 commit comments