(action: Action<TData, TError>)
| 713 | } |
| 714 | |
| 715 | onQueryUpdate(action: Action<TData, TError>): void { |
| 716 | const notifyOptions: NotifyOptions = {} |
| 717 | |
| 718 | if (action.type === 'success') { |
| 719 | notifyOptions.onSuccess = true |
| 720 | } else if (action.type === 'error' && !isCancelledError(action.error)) { |
| 721 | notifyOptions.onError = true |
| 722 | } |
| 723 | |
| 724 | this.updateResult(notifyOptions) |
| 725 | |
| 726 | if (this.hasListeners()) { |
| 727 | this.updateTimers() |
| 728 | } |
| 729 | } |
| 730 | |
| 731 | private notify(notifyOptions: NotifyOptions): void { |
| 732 | notifyManager.batch(() => { |
no test coverage detected