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

Function get

packages/vue/src/makeClient.ts:1247–1252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1245 const getOrMakeClient = () => (client ??= clientFor__(m, queryInvalidation, invalidationResources))
1246
1247 // initialize on first use..
1248 const proxy = Struct.keys(m).concat(["helpers"]).reduce((acc, key) => {
1249 Object.defineProperty(acc, key, {
1250 configurable: true,
1251 get() {
1252 const v = (getOrMakeClient() as any)[key as any]
1253 // cache on first use.
1254 Object.defineProperty(acc, key, { value: v })
1255 return v

Callers 5

trackByKeysFunction · 0.70
trackWritableByKeysFunction · 0.70
trackReadDependenciesFunction · 0.70
structuralShareFunction · 0.70
atomQuery.tsFile · 0.70

Calls 1

getOrMakeClientFunction · 0.85

Tested by

no test coverage detected