Android-CleanArchitecture-Kotlin
Android-CleanArchitecture-Kotlin copied to clipboard
Configuration change is not handled
Steps to reproduce:
- Switch off network connection
- Open the app, show "No network connection" snackbar
- Switch on network connection
- Click "Refresh", movies show up
- Then rotate screen, "No network connection" snackbar is shown.
The cause perhaps is that the MoviesViewModel
holds the previous Failure
value during configuration change.
It'd be nice if there was something like an UnicastSubject for the errors separate from the Data in a BehaviorSubject
Thanks. I will mark this as a bug and will try to fix it asap. Although a PR is very welcome.