()
| 108 | } |
| 109 | |
| 110 | protected onSubscribe(): void { |
| 111 | if (this.listeners.size === 1) { |
| 112 | this.#currentQuery.addObserver(this) |
| 113 | |
| 114 | if (shouldFetchOnMount(this.#currentQuery, this.options)) { |
| 115 | this.#executeFetch() |
| 116 | } else { |
| 117 | this.updateResult() |
| 118 | } |
| 119 | |
| 120 | this.#updateTimers() |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | protected onUnsubscribe(): void { |
| 125 | if (!this.hasListeners()) { |
nothing calls this directly
no test coverage detected