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

Function useFeature

packages/shared/src/components/GrowthBookProvider.tsx:207–208  ·  view source on GitHub ↗
(feature)

Source from the content-addressed store, hash-verified

205 feature ? gbUseFeatureIsOn(feature.id) : false;
206
207export const useFeature: GetFeatureValue = (feature) =>
208 useFeatureValue(feature.id, feature.defaultValue);
209
210export const useGrowthBookContext = (): GrowthBookContextValue =>
211 useContext(GrowthBookContext);

Callers 15

WithExperimentFunction · 0.90
MainFeedLayoutFunction · 0.90
PlusDesktopFunction · 0.90
PlusMobileFunction · 0.90
PlusExtensionFunction · 0.90
PersonalizedDigestFunction · 0.90
LanguageDropdownFunction · 0.90
BookmarkSectionFunction · 0.90
PlusMobileEntryBannerFunction · 0.90
PlusGridFunction · 0.90
ShareGrid.tsxFile · 0.90
ShareList.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected