Service Layer medium complexity frontendmobile
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Flutter BLoC state management component that holds the currently active organization context for the entire session. Broadcasts context changes to all subscribing widgets and persists the selected context to local secure storage so it survives app restarts.

Feature: Multi-Organization Membership Handling

org-context-bloc

Responsibilities

  • Hold and broadcast the active organization context
  • Persist active context to local secure storage
  • Restore context on app restart
  • Emit state changes to all subscribed widgets
  • Reset context on user logout

Interfaces

switchActiveOrg(organizationId)
getActiveOrgStream()
getCurrentActiveOrg()
resetContext()
persistContext(orgId)
restoreContextFromStorage()

Related Data Entities (1)

Data entities managed by this component