MCPcopy Create free account
hub / github.com/AudiusProject/apps / createUseFeatureFlagHook

Function createUseFeatureFlagHook

packages/common/src/hooks/useFeatureFlag.ts:59–117  ·  view source on GitHub ↗
({
    remoteConfigInstance,
    getLocalStorageItem,
    setLocalStorageItem,
    useHasAccount,
    useHasConfigLoaded
  }: {
    remoteConfigInstance: RemoteConfigInstance
    getLocalStorageItem?: (key: string) => Promise<string | null>
    setLocalStorageItem?: (key: string, value: string | null) => Promise<void>
    useHasAccount: () => boolean
    useHasConfigLoaded: () => boolean
  })

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

useRemoteConfig.tsFile · 0.90
useRemoteConfig.tsFile · 0.90

Calls 3

useHasConfigLoadedFunction · 0.90
useRecomputeToggleFunction · 0.85
getOverrideFunction · 0.85

Tested by

no test coverage detected