()
| 291 | } |
| 292 | |
| 293 | isStatic(): boolean { |
| 294 | if (this.getObserversCount() > 0) { |
| 295 | return this.observers.some( |
| 296 | (observer) => |
| 297 | resolveStaleTime(observer.options.staleTime, this) === 'static', |
| 298 | ) |
| 299 | } |
| 300 | |
| 301 | return false |
| 302 | } |
| 303 | |
| 304 | isStale(): boolean { |
| 305 | // check observers first, their `isStale` has the source of truth |
no test coverage detected