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

Function usePostLogEvent

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

Source from the content-addressed store, hash-verified

344};
345
346export function usePostLogEvent() {
347 const { boostedBy } = useFeedCardContext();
348
349 return useCallback(
350 (
351 eventName: string,
352 post: Post | ReadHistoryPost | PostBootData,
353 opts?: PostLogEventFnOptions,
354 ) => {
355 return postLogEvent(eventName, post, {
356 ...opts,
357 is_ad: !!boostedBy,
358 });
359 },
360 [boostedBy],
361 );
362}

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