* 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.
()
| 164 | * query it was observing. |
| 165 | */ |
| 166 | destroy(): void { |
| 167 | this.listeners = new Set() |
| 168 | this.#clearStaleTimeout() |
| 169 | this.#clearRefetchInterval() |
| 170 | this.#currentQuery.removeObserver(this) |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * Updates the observer's options. This will re-resolve the query being |
no test coverage detected