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

Function mutationHandler

packages/shared/src/hooks/usePostFeedback.ts:50–60  ·  view source on GitHub ↗
(postItem: Post)

Source from the content-addressed store, hash-verified

48 });
49
50 const mutationHandler = (postItem: Post) => {
51 return {
52 userState: {
53 ...postItem.userState,
54 flags: {
55 ...postItem.userState?.flags,
56 feedbackDismiss: true,
57 },
58 },
59 };
60 };
61
62 if (feedQueryKey) {
63 const postIndex = items.findIndex(

Callers 1

usePostFeedbackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected