-
Notifications
You must be signed in to change notification settings - Fork 11.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to perform retry for loading UI state when using .stateIn() approach? #987
Comments
class YourViewModel(private val taskRepository: TaskRepository) : ViewModel() {
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example
He we load data model from repository. Usually we have here API IO so it can always fail.
In the example we map the fail into the Error class and later into error Ui State. Understandable.
Now assuming on the Error Ui we have the "Try again button" which will call onRetryClick() callback in the ViewModel.
How we supposed to re-start all that chain or only _taskAsync chain?
The text was updated successfully, but these errors were encountered: