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