()
| 284 | } |
| 285 | |
| 286 | isStatic(): boolean { |
| 287 | if (this.getObserversCount() > 0) { |
| 288 | return this.observers.some( |
| 289 | (observer) => |
| 290 | resolveStaleTime(observer.options.staleTime, this) === 'static', |
| 291 | ) |
| 292 | } |
| 293 | |
| 294 | return false |
| 295 | } |
| 296 | |
| 297 | isStale(): boolean { |
| 298 | // check observers first, their `isStale` has the source of truth |
no test coverage detected