* Stops observing the current query: clears all listeners, cancels the * stale and refetch-interval timers, and removes this observer from the * query it was observing.
()
| 159 | * query it was observing. |
| 160 | */ |
| 161 | destroy(): void { |
| 162 | this.listeners = new Set() |
| 163 | this.#clearStaleTimeout() |
| 164 | this.#clearRefetchInterval() |
| 165 | this.#currentQuery.removeObserver(this) |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * Updates the observer's options. This will re-resolve the query being |
no test coverage detected