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

Function onUndo

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

Source from the content-addressed store, hash-verified

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