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

Method constructor

packages/lit-query/src/useIsMutating.ts:23–36  ·  view source on GitHub ↗
(
    host: ReactiveControllerHost,
    private readonly filters: Accessor<MutationFilters> = {},
    queryClient?: QueryClient,
  )

Source from the content-addressed store, hash-verified

21 private unsubscribe: (() => void) | undefined
22
23 constructor(
24 host: ReactiveControllerHost,
25 private readonly filters: Accessor<MutationFilters> = {},
26 queryClient?: QueryClient,
27 ) {
28 super(host, 0, queryClient)
29
30 if (!queryClient) {
31 return
32 }
33
34 this.queryClient = queryClient
35 this.result = this.computeValue()
36 }
37
38 protected onConnected(): void {
39 if (!this.syncClient()) {

Callers

nothing calls this directly

Calls 1

computeValueMethod · 0.95

Tested by

no test coverage detected