refresh on start
This commit is contained in:
parent
bdd6fefed1
commit
1d24005e5e
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ class DashboardActivity : ComponentActivity() {
|
|||
val dashboardViewModel = DashboardViewModel(user, vastApi)
|
||||
|
||||
lifecycleScope.launch {
|
||||
dashboardViewModel.refresh()
|
||||
repeatOnLifecycle(Lifecycle.State.STARTED) {
|
||||
dashboardViewModel.refreshError.collect {
|
||||
it.forEach { errorMsg ->
|
||||
|
|
Loading…
Reference in a new issue