Contact Store
Component Detail
Data Layer
low complexity
Shared Component
mobile
0
Dependencies
1
Dependents
2
Entities
0
Integrations
Description
Local data repository for contact records providing caching, optimistic state management, and synchronisation with the REST API. Shares the underlying contact cache with the Contact List & Search feature to ensure a single source of truth for contact data across the app.
contact-store
Responsibilities
- Cache contact detail records locally for fast access
- Maintain optimistic update state during pending API calls
- Synchronise local cache with server responses
- Provide reactive streams for contact data changes
Interfaces
getContactById(String contactId)
updateLocalContact(String contactId, Map<String, dynamic> changes)
revertLocalContact(String contactId, Contact previousState)
watchContact(String contactId)
invalidateContactCache(String contactId)
getCachedContact(String contactId)
Relationships
Related Data Entities (2)
Data entities managed by this component