()
| 78 | } |
| 79 | |
| 80 | mount(): void { |
| 81 | this.#mountCount++ |
| 82 | if (this.#mountCount !== 1) return |
| 83 | |
| 84 | this.#unsubscribeFocus = focusManager.subscribe(async (focused) => { |
| 85 | if (focused) { |
| 86 | await this.resumePausedMutations() |
| 87 | this.#queryCache.onFocus() |
| 88 | } |
| 89 | }) |
| 90 | this.#unsubscribeOnline = onlineManager.subscribe(async (online) => { |
| 91 | if (online) { |
| 92 | await this.resumePausedMutations() |
| 93 | this.#queryCache.onOnline() |
| 94 | } |
| 95 | }) |
| 96 | } |
| 97 | |
| 98 | unmount(): void { |
| 99 | this.#mountCount-- |
no test coverage detected