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

Function createComment

packages/shared/src/hooks/post/useMutateComment.spec.tsx:102–110  ·  view source on GitHub ↗
(id: string, children: Comment[] = [])

Source from the content-addressed store, hash-verified

100 sortBy: SortCommentsBy.NewestFirst,
101 });
102 const createComment = (id: string, children: Comment[] = []) =>
103 ({
104 id,
105 content: id,
106 children: {
107 edges: children.map((node) => ({ node })),
108 pageInfo: null,
109 },
110 }) as unknown as Comment;
111 const setComments = (comments: Comment[]) =>
112 client.setQueryData<PostCommentsData>(queryKey, {
113 postComments: {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected