()
| 87 | } |
| 88 | |
| 89 | private subscribe(): void { |
| 90 | if (!this.queryClient) { |
| 91 | return |
| 92 | } |
| 93 | |
| 94 | if (this.unsubscribe) { |
| 95 | return |
| 96 | } |
| 97 | |
| 98 | this.unsubscribe = this.queryClient.getMutationCache().subscribe(() => { |
| 99 | this.setResult(this.computeValue()) |
| 100 | }) |
| 101 | } |
| 102 | |
| 103 | private computeValue(): number { |
| 104 | if (!this.queryClient) { |
no test coverage detected