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

Method onConnected

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

Source from the content-addressed store, hash-verified

32 }
33
34 protected override onConnected(): void {
35 if (!this.syncClient()) {
36 this.setResult(0)
37 return
38 }
39
40 this.subscribe()
41 this.setResult(this.computeValue())
42 }
43
44 protected override onDisconnected(): void {
45 this.unsubscribe?.()

Callers

nothing calls this directly

Calls 3

syncClientMethod · 0.95
subscribeMethod · 0.95
computeValueMethod · 0.95

Tested by

no test coverage detected