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

Function emitPatchyEvent

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

Source from the content-addressed store, hash-verified

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

Callers 8

usePatchyBoneFunction · 0.90
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