Preferences Store
Component Detail
Data Layer
medium complexity
mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Encrypted local persistence layer for user preference values. Provides typed read and write access to individual keys and supports bulk hydration on app start. Acts as the source of truth for offline reads before backend sync completes.
preferences-store
Sources & reasoning
Source explicitly lists Settings and preferences as a mobile screen accessible from the hamburger menu, which is exactly the App Settings & Preferences feature in the Home & Navigation area.
-
docs/source/likeperson.md · line 215-216Bottom nav with 5 tabs: Home, Contacts, Add ... Settings accessible from hamburger menu
-
docs/source/likeperson.md · line 223Settings and preferences
Responsibilities
- Persist preference key-value pairs in the encrypted store
- Provide typed read access for individual preference keys
- Hydrate the in-memory preference state on app launch
- Support bulk replace when syncing from backend
- Clear stored preferences during sign-out or reset
Interfaces
get(key): Value
set(key, value): Promise<void>
getAll(): Preferences
replaceAll(preferences): Promise<void>
clear(): Promise<void>