Skip to content

[P1] ViewModels: StateFlow UiState + unidirectional data flow #81

Description

@amaury901130

Replace LiveData + state enums + NetworkState + mutable error var with one immutable UiState data class exposed as StateFlow, actions via onAction, one-off events handled explicitly.

Acceptance criteria

  • No LiveData in ViewModels
  • ViewModel tests use runTest + Turbine or StateFlow assertions

Reference: Android Base — Modernization Audit & Recommendations — section: Target architecture

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions