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

Function wrapStopPropagation

packages/shared/src/lib/func.ts:118–122  ·  view source on GitHub ↗
(callback: () => void)

Source from the content-addressed store, hash-verified

116
117export const wrapStopPropagation =
118 (callback: () => void): ((event: MouseEvent) => unknown) =>
119 (event: MouseEvent) => {
120 event.stopPropagation();
121 callback();
122 };
123
124export const sortAlphabeticallyByProperty =
125 <T>(property: keyof T) =>

Callers 2

CardCoverShareFunction · 0.90
PostReminderOptionsFunction · 0.90

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected