MCPcopy Create free account
hub / github.com/TanStack/router / onError

Method onError

packages/start-plugin-core/src/queue.ts:100–105  ·  view source on GitHub ↗
(cb: (error: any, task: () => Promise<any>) => void)

Source from the content-addressed store, hash-verified

98 }
99
100 onError(cb: (error: any, task: () => Promise<any>) => void) {
101 this.onErrors.push(cb)
102 return () => {
103 this.onErrors = this.onErrors.filter((d) => d !== cb)
104 }
105 }
106
107 onSuccess(cb: (result: any, task: () => Promise<any>) => void) {
108 this.onSuccesses.push(cb)

Callers 8

normalizeErrorFunction · 0.80
normalizeErrorFunction · 0.80
setupFunction · 0.80
pullFunction · 0.80
cancelFunction · 0.80
pipeFunction · 0.80

Calls 1

pushMethod · 0.80

Tested by 2

cancelFunction · 0.64
pipeFunction · 0.64