MCPcopy
hub / github.com/alibaba/hooks / runPluginHandler

Method runPluginHandler

packages/hooks/src/useRequest/src/Fetch.ts:39–43  ·  view source on GitHub ↗
(event: keyof PluginReturn<TData, TParams>, ...rest: any[])

Source from the content-addressed store, hash-verified

37 }
38
39 runPluginHandler(event: keyof PluginReturn<TData, TParams>, ...rest: any[]) {
40 // @ts-ignore
41 const r = this.pluginImpls.map((i) => i[event]?.(...rest)).filter(Boolean);
42 return Object.assign({}, ...r);
43 }
44
45 async runAsync(...params: TParams): Promise<TData> {
46 this.count += 1;

Callers 3

runAsyncMethod · 0.95
cancelMethod · 0.95
mutateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected