* Returns the number of observers currently subscribed to this query. * @returns The number of observers. * @example * ```ts * if (query.getObserversCount() === 0) { * // no component is currently watching this query * } * ```
()
| 671 | * ``` |
| 672 | */ |
| 673 | getObserversCount(): number { |
| 674 | return this.observers.length |
| 675 | } |
| 676 | |
| 677 | /** |
| 678 | * Marks the query as invalidated, unless it is already invalidated. This |
no outgoing calls
no test coverage detected