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