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

Function constructor

packages/lit-query/src/controllers/BaseController.ts:30–40  ·  view source on GitHub ↗
(
    protected readonly host: ReactiveControllerHost,
    initialResult: TResult,
    queryClient?: QueryClient,
  )

Source from the content-addressed store, hash-verified

28 private queryClientResolutionState: QueryClientResolutionState
29
30 protected constructor(
31 protected readonly host: ReactiveControllerHost,
32 initialResult: TResult,
33 queryClient?: QueryClient,
34 ) {
35 this.explicitClient = queryClient
36 this.result = initialResult
37 this.queryClientResolutionState = queryClient ? 'bound' : 'pre-connect'
38
39 host.addController(this)
40 }
41
42 hostConnected(): void {
43 if (this.connected || this.destroyed) {

Callers

nothing calls this directly

Calls 1

addControllerMethod · 0.45

Tested by

no test coverage detected