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