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

Method constructor

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

computeValueMethod · 0.95

Tested by

no test coverage detected