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

Method run

packages/hooks/src/useRequest/src/Fetch.ts:130–136  ·  view source on GitHub ↗
(...params: TParams)

Source from the content-addressed store, hash-verified

128 }
129
130 run(...params: TParams) {
131 this.runAsync(...params).catch((error) => {
132 if (!this.options.onError) {
133 console.error(error);
134 }
135 });
136 }
137
138 cancel() {
139 this.count += 1;

Callers 12

refreshMethod · 0.95
index.spec.tsFile · 0.80
useRequestImplementFunction · 0.80
useAutoRunPluginFunction · 0.80
triggerFunction · 0.80
index.spec.tsFile · 0.80
onChangeFunction · 0.80
index.spec.tsFile · 0.80

Calls 1

runAsyncMethod · 0.95

Tested by

no test coverage detected