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

Function useFeatureIsOn

packages/shared/src/components/GrowthBookProvider.tsx:214–215  ·  view source on GitHub ↗
(feature?: Feature<JSONValue>)

Source from the content-addressed store, hash-verified

212};
213
214export const useFeatureIsOn = (feature?: Feature<JSONValue>): boolean =>
215 feature ? gbUseFeatureIsOn(feature.id) : false;
216
217export const useFeature: GetFeatureValue = (feature) =>
218 useFeatureValue(feature.id, feature.defaultValue);

Callers 1

useReferralCampaignFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected