(notifyOptions: { listeners: boolean })
| 728 | } |
| 729 | |
| 730 | #notify(notifyOptions: { listeners: boolean }): void { |
| 731 | notifyManager.batch(() => { |
| 732 | // First, trigger the listeners |
| 733 | if (notifyOptions.listeners) { |
| 734 | this.listeners.forEach((listener) => { |
| 735 | listener(this.#currentResult) |
| 736 | }) |
| 737 | } |
| 738 | |
| 739 | // Then the cache listeners |
| 740 | this.#client.getQueryCache().notify({ |
| 741 | query: this.#currentQuery, |
| 742 | type: 'observerResultsUpdated', |
| 743 | }) |
| 744 | }) |
| 745 | } |
| 746 | } |
| 747 | |
| 748 | function shouldLoadOnMount( |
no test coverage detected