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