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