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