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

Function rollbackMutationHandler

packages/shared/src/hooks/useBookmarkPost.ts:336–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

334 }
335
336 const rollbackMutationHandler = () => ({
337 bookmarked: previousState,
338 bookmark: previousBookmark,
339 analytics: previousAnalytics,
340 });
341
342 optimisticPostUpdateInFeed(
343 items,

Callers 4

CommentActionButtonsFunction · 0.85
CommentActionButtonsV1Function · 0.85
defaultOnMutateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected