()
| 102 | } |
| 103 | |
| 104 | destroy(): void { |
| 105 | if (this.destroyed) { |
| 106 | return |
| 107 | } |
| 108 | |
| 109 | this.destroyed = true |
| 110 | this.connected = false |
| 111 | this.connectionAttempt += 1 |
| 112 | this.clearContextClient() |
| 113 | this.queryClientResolutionState = this.explicitClient |
| 114 | ? 'bound' |
| 115 | : 'pre-connect' |
| 116 | this.onDisconnected() |
| 117 | |
| 118 | if ('removeController' in this.host) { |
| 119 | this.host.removeController(this) |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | protected tryGetQueryClient(): QueryClient | undefined { |
| 124 | return this.explicitClient ?? this.contextClient |
nothing calls this directly
no test coverage detected