* 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() * ```
()
| 572 | * ``` |
| 573 | */ |
| 574 | invalidate(): void { |
| 575 | if (!this.state.isInvalidated) { |
| 576 | this.#dispatch({ type: 'invalidate' }) |
| 577 | } |
| 578 | } |
| 579 | |
| 580 | /** |
| 581 | * Fetches the query, i.e. runs its `queryFn` (through any configured |
no test coverage detected