* The inverse of QueryClient#mount — called by a framework adapter's * `QueryClientProvider`-equivalent when it unmounts. Only tears down the focus/online * listeners once the mount count returns to `0`.
()
| 125 | * listeners once the mount count returns to `0`. |
| 126 | */ |
| 127 | unmount(): void { |
| 128 | this.#mountCount-- |
| 129 | if (this.#mountCount !== 0) return |
| 130 | |
| 131 | this.#unsubscribeFocus?.() |
| 132 | this.#unsubscribeFocus = undefined |
| 133 | |
| 134 | this.#unsubscribeOnline?.() |
| 135 | this.#unsubscribeOnline = undefined |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Returns the number of queries in the cache that are currently fetching, optionally |
no outgoing calls