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