MCPcopy Index your code
hub / github.com/angular/angular / setStashFn

Function setStashFn

packages/core/src/event_delegation_utils.ts:159–162  ·  view source on GitHub ↗
(appId: string, fn: StashEventListener)

Source from the content-addressed store, hash-verified

157 * @returns A cleanup function that removes the stashing function when called.
158 */
159export function setStashFn(appId: string, fn: StashEventListener) {
160 stashEventListeners.set(appId, fn);
161 return () => stashEventListeners.delete(appId);
162}
163
164/**
165 * Indicates whether the stashing code was added, prevents adding it multiple times.

Callers 1

withEventReplayFunction · 0.90

Calls 2

setMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…