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