* Marks the query as invalidated, unless it is already invalidated. This * updates `state.isInvalidated` and notifies observers, but does not by * itself trigger a refetch. * @example * ```ts * query.invalidate() * ```
()
| 684 | * ``` |
| 685 | */ |
| 686 | invalidate(): void { |
| 687 | if (!this.state.isInvalidated) { |
| 688 | this.#dispatch({ type: 'invalidate' }) |
| 689 | } |
| 690 | } |
| 691 | |
| 692 | /** |
| 693 | * Fetches the query, i.e. runs its `queryFn` (through any configured |
no test coverage detected