(notifyOptions: { listeners: boolean })
| 705 | } |
| 706 | |
| 707 | #notify(notifyOptions: { listeners: boolean }): void { |
| 708 | notifyManager.batch(() => { |
| 709 | // First, trigger the listeners |
| 710 | if (notifyOptions.listeners) { |
| 711 | this.listeners.forEach((listener) => { |
| 712 | listener(this.#currentResult) |
| 713 | }) |
| 714 | } |
| 715 | |
| 716 | // Then the cache listeners |
| 717 | this.#client.getQueryCache().notify({ |
| 718 | query: this.#currentQuery, |
| 719 | type: 'observerResultsUpdated', |
| 720 | }) |
| 721 | }) |
| 722 | } |
| 723 | } |
| 724 | |
| 725 | function shouldLoadOnMount( |
no test coverage detected