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

Function getFeatureValue

packages/shared/src/components/GrowthBookProvider.tsx:46–48  ·  view source on GitHub ↗
(feature: Feature<T>)

Source from the content-addressed store, hash-verified

44export const FeaturesReadyContext = createContext<FeaturesReadyContextValue>({
45 ready: false,
46 getFeatureValue<T extends JSONValue>(feature: Feature<T>) {
47 return feature.defaultValue as WidenPrimitives<T>;
48 },
49});
50
51export const useFeaturesReadyContext = (): FeaturesReadyContextValue =>

Callers 5

MainFeedLayoutFunction · 0.70
BoostPostModalFunction · 0.50
BoostSquadModalFunction · 0.50
useSearchProviderFunction · 0.50
useSmartComposerFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected