Resource Repository
Component Detail
Data Layer
low complexity
mobile
0
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Fetches the organization-scoped resource list from the REST API and caches it locally for offline access using an ETag or last-modified header strategy. Provides the single source of truth for resource data consumed by the Resources Screen.
resource-repository
Responsibilities
- Fetch resource list from REST API scoped to the user's organization
- Cache resources locally for offline availability
- Invalidate cache using ETag or last-modified header strategy
- Return cached data when network is unavailable
Interfaces
getResources(organizationId)
refreshResources(organizationId)
getCachedResources()
clearCache()
isCacheStale()
Relationships
Related Data Entities (1)
Data entities managed by this component