MCPcopy
hub / github.com/vercel/next.js / off

Method off

test/lib/next-modes/base.ts:940–942  ·  view source on GitHub ↗
(event: Event, cb: (...args: any[]) => any)

Source from the content-addressed store, hash-verified

938 }
939
940 public off(event: Event, cb: (...args: any[]) => any) {
941 this.events[event]?.delete(cb)
942 }
943
944 protected emit(event: Event, args: any[]) {
945 this.events[event]?.forEach((cb) => {

Callers 15

withRequestMetricsFunction · 0.45
cleanupFunction · 0.45
epFunction · 0.45
PageFunction · 0.45
PageFunction · 0.45
handleResponseFunction · 0.45
handleFailureFunction · 0.45
actFunction · 0.45
onRequestFunction · 0.45
captureResponseFunction · 0.45
prerenderedCallbackMethod · 0.45
readyCbMethod · 0.45

Calls 1

deleteMethod · 0.45

Tested by 5

doneFunction · 0.36
waitForServerFunction · 0.36
onStdoutFunction · 0.36
onErrorFunction · 0.36
onExitFunction · 0.36