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 7

handleSerialErrorFunction · 0.80
runLoaderFunction · 0.80
setupFunction · 0.80
pullFunction · 0.80
serializeResultFunction · 0.80

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected