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

Function constructor

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

Source from the content-addressed store, hash-verified

34 private queryClientResolutionState: QueryClientResolutionState
35
36 protected constructor(
37 protected readonly host: ReactiveControllerHost,
38 initialResult: TResult,
39 queryClient?: QueryClient,
40 ) {
41 this.explicitClient = queryClient
42 this.result = initialResult
43 this.queryClientResolutionState = queryClient ? 'bound' : 'pre-connect'
44
45 host.addController(this)
46 }
47
48 /**
49 * Starts resolving the `QueryClient` from context, unless one was passed

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected