MCPcopy Create free account
hub / github.com/dailydotdev/apps / emitPatchyEvent

Function emitPatchyEvent

packages/shared/src/features/patchy/patchyEvents.ts:19–21  ·  view source on GitHub ↗
(event: PatchyEvent)

Source from the content-addressed store, hash-verified

17const listeners = new Set<Listener>();
18
19export const emitPatchyEvent = (event: PatchyEvent): void => {
20 listeners.forEach((listener) => listener(event));
21};
22
23export const subscribePatchyEvents = (listener: Listener): (() => void) => {
24 listeners.add(listener);

Callers 7

openFunction · 0.90
useBookmarkPostFunction · 0.90
useVotePostFunction · 0.90
useTrackPostViewFunction · 0.90
useViewPostFunction · 0.90

Calls

no outgoing calls

Tested by 1

openFunction · 0.72