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

Function usePostLogEvent

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

Source from the content-addressed store, hash-verified

382};
383
384export function usePostLogEvent() {
385 const { boostedBy } = useFeedCardContext();
386
387 return useCallback(
388 (
389 eventName: string,
390 post: Post | ReadHistoryPost | PostBootData,
391 opts?: PostLogEventFnOptions,
392 ) => {
393 return postLogEvent(eventName, post, {
394 ...opts,
395 is_ad: opts?.is_ad || !!boostedBy,
396 });
397 },
398 [boostedBy],
399 );
400}

Callers 14

useFeedHeroCardPropsFunction · 0.90
FeedHeroFunction · 0.90
ReadingListWidgetFunction · 0.90
SquadUpdatesWidgetFunction · 0.90
TopStoryWidgetFunction · 0.90
FeedExplainCardFunction · 0.90
PostOptionButtonContentFunction · 0.90
useBookmarkPostFunction · 0.90
useOnPostClickFunction · 0.90
useSharePostFunction · 0.90
useLogImpressionFunction · 0.90
useBookmarkStateFunction · 0.90

Calls 2

useFeedCardContextFunction · 0.90
postLogEventFunction · 0.85

Tested by

no test coverage detected