FAQ Store
Component Detail
Data Layer
low complexity
mobile
0
Dependencies
2
Dependents
1
Entities
0
Integrations
Description
Local data store that caches FAQ items fetched from the backend for offline access and fast client-side search. Persists FAQ content to local storage so users can browse help content without network connectivity, which is critical for the target audience of users with limited digital experience.
faq-store
Responsibilities
- Cache FAQ items locally for offline access
- Provide fast indexed lookup by category and search terms
- Track last sync timestamp for cache freshness
- Store FAQ items in structured format supporting category grouping and sort order
Interfaces
saveFaqItems(items: List<FaqItem>): Future<void>
getAllFaqItems(): List<FaqItem>
getFaqItemsByCategory(category: String): List<FaqItem>
getLastSyncTimestamp(): DateTime?
clearCache(): Future<void>
searchLocal(query: String): List<FaqItem>