()
| 277 | } |
| 278 | |
| 279 | isDisabled(): boolean { |
| 280 | if (this.getObserversCount() > 0) { |
| 281 | return !this.isActive() |
| 282 | } |
| 283 | // if a query has no observers, it should still be considered disabled if it never attempted a fetch |
| 284 | return this.options.queryFn === skipToken || !this.isFetched() |
| 285 | } |
| 286 | |
| 287 | isFetched() { |
| 288 | return this.state.dataUpdateCount + this.state.errorUpdateCount > 0 |
no test coverage detected