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

Function onUndo

packages/shared/src/hooks/useSourceMenuProps.tsx:31–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 };
30
31 const onUndo = () => {
32 if (!source?.id || !source.handle) {
33 return;
34 }
35
36 unfollow({
37 id: sourceId,
38 entity: ContentPreferenceType.Source,
39 entityName: source.handle,
40 feedId,
41 });
42 };
43
44 const onAdd = () => {
45 if (!source?.id || !source.handle) {

Callers 3

handleAddToCustomFeedFunction · 0.50
onUndoToastFunction · 0.50
useBlockPostPanelFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected