MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / get

Function get

packages/hosts/mcp-apps-shell/src/shell/hooks.ts:56–65  ·  view source on GitHub ↗
(target, prop, receiver)

Source from the content-addressed store, hash-verified

54const wrapQueryClient = (client: QueryClientType): QueryClientType =>
55 new Proxy(client, {
56 get(target, prop, receiver) {
57 const value = Reflect.get(target, prop, receiver) as unknown;
58 if (prop === "invalidateQueries" && typeof value === "function") {
59 return (...args: unknown[]) =>
60 trackInvalidation(
61 (value as (...args: unknown[]) => Promise<unknown>).apply(target, args),
62 );
63 }
64 return typeof value === "function" ? value.bind(target) : value;
65 },
66 }) as QueryClientType;
67
68export const useQueryClient = (queryClient?: QueryClientType): QueryClientType => {

Callers

nothing calls this directly

Calls 2

trackInvalidationFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected