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

Method onConnected

packages/lit-query/src/useIsMutating.ts:38–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 protected onConnected(): void {
39 if (!this.syncClient()) {
40 this.setResult(0)
41 return
42 }
43
44 this.subscribe()
45 this.setResult(this.computeValue())
46 }
47
48 protected onDisconnected(): void {
49 this.unsubscribe?.()

Callers

nothing calls this directly

Calls 3

syncClientMethod · 0.95
subscribeMethod · 0.95
computeValueMethod · 0.95

Tested by

no test coverage detected