()
| 304 | } |
| 305 | |
| 306 | #notify(): void { |
| 307 | if (this.hasListeners()) { |
| 308 | const newTracked = this.#trackResult(this.#result, this.#observerMatches) |
| 309 | const shouldSkipCombine = this.#shouldSkipCombine() |
| 310 | const previousResult = this.#combinedResult |
| 311 | const newResult = shouldSkipCombine |
| 312 | ? previousResult |
| 313 | : this.#combineResult(newTracked, this.#options?.combine) |
| 314 | |
| 315 | if (shouldSkipCombine || previousResult !== newResult) { |
| 316 | notifyManager.batch(() => { |
| 317 | this.listeners.forEach((listener) => { |
| 318 | listener(this.#result) |
| 319 | }) |
| 320 | }) |
| 321 | } |
| 322 | } |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | type QueryObserverMatch = { |
no test coverage detected