MCPcopy Create free account
hub / github.com/effect-app/libs / constructor

Method constructor

packages/vue/src/makeClient.ts:461–475  ·  view source on GitHub ↗
(
    getRuntime: () => Context.Context<R>,
    getAtomRt: () => AtomClientRuntime,
    legacyUseQuery?: ReturnType<typeof makeQuery<R>>
  )

Source from the content-addressed store, hash-verified

459 readonly getRuntime: () => Context.Context<R>
460
461 constructor(
462 getRuntime: () => Context.Context<R>,
463 getAtomRt: () => AtomClientRuntime,
464 legacyUseQuery?: ReturnType<typeof makeQuery<R>>
465 ) {
466 this.getRuntime = getRuntime
467 this.useQuery = legacyUseQuery ?? makeQuery(this.getRuntime, getAtomRt)
468 this.useQueryNew = makeQueryNew(this.getRuntime, getAtomRt)
469 this.useQueryAtom = makeQueryAtom(this.getRuntime, getAtomRt)
470 this.useQueryFamily = makeQueryFamily(this.getRuntime, getAtomRt)
471 this.useStreamQuery = makeStreamQuery(this.getRuntime, getAtomRt)
472 this.useStreamQueryFamily = makeStreamQueryFamily(this.getRuntime, getAtomRt)
473 this.useStreamQueryAtom = makeStreamQueryAtom(this.getRuntime, getAtomRt)
474 this.useStreamQueryNew = makeStreamQueryNew(this.getRuntime, getAtomRt)
475 }
476 /**
477 * Effect results are passed to the caller, including errors.
478 * @deprecated use client helpers instead (.query())

Callers

nothing calls this directly

Calls 8

makeQueryFunction · 0.90
makeQueryNewFunction · 0.90
makeQueryAtomFunction · 0.90
makeQueryFamilyFunction · 0.90
makeStreamQueryFunction · 0.90
makeStreamQueryFamilyFunction · 0.90
makeStreamQueryAtomFunction · 0.90
makeStreamQueryNewFunction · 0.90

Tested by

no test coverage detected