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

Function onUndo

packages/shared/src/features/posts/PostOptionButton.tsx:305–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303 undo?: () => unknown,
304 ) => {
305 const onUndo = async () => {
306 await undo?.();
307 client.invalidateQueries({ queryKey: activeFeedQueryKey });
308 };
309 displayToast(message, {
310 subject: ToastSubject.Feed,
311 ...(undo && {

Callers

nothing calls this directly

Calls 1

undoFunction · 0.85

Tested by

no test coverage detected