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)
|
val dashboardViewModel = DashboardViewModel(user, vastApi)
|
||||||
|
|
||||||
lifecycleScope.launch {
|
lifecycleScope.launch {
|
||||||
|
dashboardViewModel.refresh()
|
||||||
repeatOnLifecycle(Lifecycle.State.STARTED) {
|
repeatOnLifecycle(Lifecycle.State.STARTED) {
|
||||||
dashboardViewModel.refreshError.collect {
|
dashboardViewModel.refreshError.collect {
|
||||||
it.forEach { errorMsg ->
|
it.forEach { errorMsg ->
|
||||||
|
|
Loading…
Reference in a new issue