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

Function useIsPlusAdFree

packages/shared/src/hooks/useIsPlusAdFree.ts:10–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 * Until the flag resolves, Plus stays ad-free.
9 */
10export const useIsPlusAdFree = (): boolean => {
11 const { isPlus } = usePlusSubscription();
12 const { value: forceAd } = useConditionalFeature({
13 feature: featureForceAd,
14 shouldEvaluate: isPlus,
15 });
16
17 return isPlus && !forceAd;
18};

Callers 13

useFeedHeroAdFunction · 0.90
PostSidebarAdWidgetFunction · 0.90
PostEngagementsFunction · 0.90
PostExcoPlayerWidgetFunction · 0.90
PostHybridDiscussionFunction · 0.90
usePromotedSquadFunction · 0.90
useSimilarSquadsFunction · 0.90
useFeedWidgetAdSlotFunction · 0.90
useFeedWidgetAdFunction · 0.90
useSponsorStripFunction · 0.90
FeedLayoutProviderFunction · 0.90
EngagementAdsProviderFunction · 0.90

Calls 2

usePlusSubscriptionFunction · 0.90
useConditionalFeatureFunction · 0.90

Tested by

no test coverage detected