()
| 269 | } |
| 270 | |
| 271 | #notify(): void { |
| 272 | if (this.hasListeners()) { |
| 273 | const previousResult = this.#combinedResult |
| 274 | const newTracked = this.#trackResult(this.#result, this.#observerMatches) |
| 275 | const newResult = this.#combineResult(newTracked, this.#options?.combine) |
| 276 | |
| 277 | if (previousResult !== newResult) { |
| 278 | notifyManager.batch(() => { |
| 279 | this.listeners.forEach((listener) => { |
| 280 | listener(this.#result) |
| 281 | }) |
| 282 | }) |
| 283 | } |
| 284 | } |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | type QueryObserverMatch = { |
no test coverage detected