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

Function prepareVotePostLogOptions

packages/shared/src/hooks/vote/useVotePost.ts:28–38  ·  view source on GitHub ↗
({
  origin,
  opts,
}: ToggleVoteProps)

Source from the content-addressed store, hash-verified

26import { emitPatchyEvent } from '../../features/patchy/patchyEvents';
27
28const prepareVotePostLogOptions = ({
29 origin,
30 opts,
31}: ToggleVoteProps): PostLogEventFnOptions => {
32 const { extra, ...restOpts } = opts || {};
33
34 return {
35 ...restOpts,
36 extra: { ...extra, origin },
37 };
38};
39
40const useVotePost = ({
41 onMutate,

Callers 1

useVotePostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected