* Returns `true` if the query has at least one observer configured with * `staleTime: 'static'`, meaning it is treated as never stale.
()
| 418 | * `staleTime: 'static'`, meaning it is treated as never stale. |
| 419 | */ |
| 420 | isStatic(): boolean { |
| 421 | if (this.getObserversCount() > 0) { |
| 422 | return this.observers.some( |
| 423 | (observer) => |
| 424 | resolveQueryValue(observer.options.staleTime, this) === 'static', |
| 425 | ) |
| 426 | } |
| 427 | |
| 428 | return false |
| 429 | } |
| 430 | |
| 431 | /** |
| 432 | * Returns `true` if the query is stale. |
no test coverage detected