Contact Detail Provider
Component Detail
Service Layer
low complexity
mobile
1
Dependencies
2
Dependents
1
Entities
0
Integrations
Description
Riverpod provider that subscribes to a reactive Drift query for a single contact record and its related data, emitting updated state to the UI whenever the local database changes. Combines the contact with its associated activities and caregiver records into a unified ContactDetail view model. Exposes loading and error states for the detail screen to handle all async transitions.
contact-detail-provider
Responsibilities
- Watch the contact record in Drift and emit reactive state updates to the UI
- Combine contact with associated activities and caregiver records into a view model
- Expose AsyncValue loading and error states for the detail screen
Interfaces
contactDetailProvider(contactId: String): AsyncValue<ContactDetail>
invalidate(contactId: String)
Relationships
Dependents (2)
Components that depend on this component