* Returns the number of observers currently subscribed to this query. * * @example * ```ts * if (query.getObserversCount() === 0) { * // no component is currently watching this query * } * ```
()
| 558 | * ``` |
| 559 | */ |
| 560 | getObserversCount(): number { |
| 561 | return this.observers.length |
| 562 | } |
| 563 | |
| 564 | /** |
| 565 | * Marks the query as invalidated, unless it is already invalidated. This |
no outgoing calls
no test coverage detected