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

Function usePostLogEvent

packages/shared/src/lib/feed.ts:371–387  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

369};
370
371export function usePostLogEvent() {
372 const { boostedBy } = useFeedCardContext();
373
374 return useCallback(
375 (
376 eventName: string,
377 post: Post | ReadHistoryPost | PostBootData,
378 opts?: PostLogEventFnOptions,
379 ) => {
380 return postLogEvent(eventName, post, {
381 ...opts,
382 is_ad: !!boostedBy,
383 });
384 },
385 [boostedBy],
386 );
387}

Callers 7

PostOptionButtonContentFunction · 0.90
useBookmarkPostFunction · 0.90
useOnPostClickFunction · 0.90
useSharePostFunction · 0.90
useLogImpressionFunction · 0.90
useVotePostFunction · 0.90
useHidePostFunction · 0.90

Calls 2

useFeedCardContextFunction · 0.90
postLogEventFunction · 0.85

Tested by

no test coverage detected