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

Function usePostLogEvent

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

Source from the content-addressed store, hash-verified

280};
281
282export function usePostLogEvent() {
283 const { boostedBy } = useFeedCardContext();
284
285 return useCallback(
286 (
287 eventName: string,
288 post: Post | ReadHistoryPost | PostBootData,
289 opts?: PostLogEventFnOptions,
290 ) => {
291 return postLogEvent(eventName, post, {
292 ...opts,
293 is_ad: !!boostedBy,
294 });
295 },
296 [boostedBy],
297 );
298}

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