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

Function close

packages/shared/src/hooks/useAppStoreReviewAsk.ts:67–77  ·  view source on GitHub ↗
(event: CloseEvent, eventName: LogEvent)

Source from the content-addressed store, hash-verified

65 }, [logEvent, requestDelayMs, targetId]);
66
67 const close = (event: CloseEvent, eventName: LogEvent) => {
68 logEvent({
69 event_name: eventName,
70 target_type: TargetType.AppStoreReview,
71 target_id: targetId,
72 });
73 if (campaignId) {
74 clearMarketingCta(campaignId);
75 }
76 onRequestClose?.(event);
77 };
78
79 return {
80 onRate: (event) => {

Callers 2

useAppStoreReviewAskFunction · 0.70
useInteractivePopupFunction · 0.50

Calls 3

logEventFunction · 0.85
clearMarketingCtaFunction · 0.85
onRequestCloseFunction · 0.50

Tested by

no test coverage detected