MCPcopy Create free account
hub / github.com/TanStack/query / hostDisconnected

Function hostDisconnected

packages/lit-query/src/controllers/BaseController.ts:75–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 }
74
75 hostDisconnected(): void {
76 if (!this.connected) {
77 return
78 }
79
80 this.connected = false
81
82 if (!this.explicitClient) {
83 this.connectionAttempt += 1
84 this.clearContextClient()
85 this.updateQueryClientResolutionState('pre-connect')
86 }
87
88 this.onDisconnected()
89 }
90
91 hostUpdate(): void {
92 if (this.destroyed) {

Callers

nothing calls this directly

Calls 1

onDisconnectedMethod · 0.45

Tested by

no test coverage detected