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.

Feature: Contact Detail & Edit

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

Dependencies (1)

Components this component depends on

Dependents (2)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component