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

Function clientOnlyFlagsKey

packages/shared/src/contexts/SettingsContext.tsx:190–195  ·  view source on GitHub ↗
(userId?: string)

Source from the content-addressed store, hash-verified

188// store is keyed by account: without it a second login on the same machine
189// inherits the first one's rail density and pinned dock.
190const clientOnlyFlagsKey = (userId?: string): string =>
191 generateStorageKey(
192 StorageTopic.Settings,
193 'clientOnlyFlags',
194 userId ?? 'anonymous',
195 );
196
197const legacyClientOnlyFlagsKey = generateStorageKey(
198 StorageTopic.Settings,

Callers 4

readStoredFlagsFunction · 0.85
writeStoredFlagsFunction · 0.85
dropGraduatedStoredFlagsFunction · 0.85
adoptLegacyStoredFlagsFunction · 0.85

Calls 1

generateStorageKeyFunction · 0.90

Tested by

no test coverage detected