()
| 94 | } |
| 95 | |
| 96 | protected onSubscribe(): void { |
| 97 | if (this.listeners.size === 1) { |
| 98 | this.#currentQuery.addObserver(this) |
| 99 | |
| 100 | if (shouldFetchOnMount(this.#currentQuery, this.options)) { |
| 101 | this.#executeFetch() |
| 102 | } else { |
| 103 | this.updateResult() |
| 104 | } |
| 105 | |
| 106 | this.#updateTimers() |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | protected onUnsubscribe(): void { |
| 111 | if (!this.hasListeners()) { |
nothing calls this directly
no test coverage detected