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

Function usePostLogEvent

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

Source from the content-addressed store, hash-verified

336};
337
338export function usePostLogEvent() {
339 const { boostedBy } = useFeedCardContext();
340
341 return useCallback(
342 (
343 eventName: string,
344 post: Post | ReadHistoryPost | PostBootData,
345 opts?: PostLogEventFnOptions,
346 ) => {
347 return postLogEvent(eventName, post, {
348 ...opts,
349 is_ad: !!boostedBy,
350 });
351 },
352 [boostedBy],
353 );
354}

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