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

Function useFeature

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

Source from the content-addressed store, hash-verified

215 feature ? gbUseFeatureIsOn(feature.id) : false;
216
217export const useFeature: GetFeatureValue = (feature) =>
218 useFeatureValue(feature.id, feature.defaultValue);
219
220export const useGrowthBookContext = (): GrowthBookContextValue =>
221 useContext(GrowthBookContext);

Callers 15

InlineAdFunction · 0.90
SidebarAdFunction · 0.90
WithExperimentFunction · 0.90
MainFeedLayoutFunction · 0.90
PlusExtensionFunction · 0.90
PersonalizedDigestFunction · 0.90
LanguageDropdownFunction · 0.90
BookmarkSectionFunction · 0.90
ExploreSectionFunction · 0.90
ShareGrid.tsxFile · 0.90
ShareList.tsxFile · 0.90
AdGrid.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected