Data is not fetched at the first time because in the codelabs code, at searches variable,
it is not calling method .onStart { ... }, but in github actually we need to call it.
Codelabs (page 7)
Github
Codelabs
val searches = actionStateFlow
.filterIsInstance<UiAction.Search>()
.distinctUntilChanged()
also in codelabs (page 9) said We can now remove binding.list.scrollToPosition(0) from updateRepoListFromInput()., but in codelabs and github the code isn't removed
Data is not fetched at the first time because in the codelabs code, at
searches
variable, it is not calling method.onStart { ... }
, but in github actually we need to call it.Codelabs
Github
also in codelabs (page 9) said
We can now remove binding.list.scrollToPosition(0) from updateRepoListFromInput().
, but in codelabs and github the code isn't removed