Base View Model
Base class for ViewModels that manages UI state and handles user actions.
This class holds the common logic for state management using StateFlow and provides a mechanism to handle actions asynchronously using Kotlin coroutines.
Parameters
S
The type of UI state that this ViewModel manages. It should implement UiState.
A
The type of user actions (intents) that this ViewModel responds to. It should implement UiAction.
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Handles a user action and updates the state accordingly using the provided onAction method.