MCPcopy
hub / github.com/QwikDev/qwik / invoke

Function invoke

packages/qwik/src/core/use/use-core.ts:146–153  ·  view source on GitHub ↗
(
  this: unknown,
  context: InvokeContext | undefined,
  fn: FN,
  ...args: Parameters<FN>
)

Source from the content-addressed store, hash-verified

144
145/** Call a function with the given InvokeContext and given arguments. */
146export function invoke<FN extends (...args: any[]) => any>(
147 this: unknown,
148 context: InvokeContext | undefined,
149 fn: FN,
150 ...args: Parameters<FN>
151): ReturnType<FN> {
152 return invokeApply.call(this, context, fn, args);
153}
154
155/** Call a function with the given InvokeContext and array of arguments. */
156export function invokeApply<FN extends (...args: any) => any>(

Callers 12

processNodeFunction · 0.90
validateJSXNodeFunction · 0.90
renderNodeFunction · 0.90
processDataFunction · 0.90
_flatVirtualChildrenFunction · 0.90
useStoreFunction · 0.90
useContextFunction · 0.90
trackFunction · 0.90
runResourceFunction · 0.90
createSignalFunction · 0.90
untrackFunction · 0.70
trackSignalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…