()
| 68 | } |
| 69 | |
| 70 | private syncClient(): boolean { |
| 71 | const nextClient = this.tryGetQueryClient() |
| 72 | if (!nextClient) { |
| 73 | this.unsubscribe?.() |
| 74 | this.unsubscribe = undefined |
| 75 | this.queryClient = undefined |
| 76 | return false |
| 77 | } |
| 78 | |
| 79 | if (nextClient === this.queryClient) { |
| 80 | return true |
| 81 | } |
| 82 | |
| 83 | this.unsubscribe?.() |
| 84 | this.unsubscribe = undefined |
| 85 | this.queryClient = nextClient |
| 86 | return true |
| 87 | } |
| 88 | |
| 89 | private subscribe(): void { |
| 90 | if (!this.queryClient) { |
no test coverage detected