Skip to content

1.0.1

Compare
Choose a tag to compare
@skydoves skydoves released this 02 Jun 15:41
· 5 commits to main since this release
3022b35

πŸŽ‰ Released a new version 1.0.1! πŸŽ‰

What's New?

  • Migrated from LiveData to Flow for observing data on UI layers from ViewModels.
  • Used Assisted Injection in DetailViewModel.
  • Used asBindingProperty for observing flow data as properties.
private val pokemonInfoFlow = detailRepository.fetchPokemonInfo(
    name = pokemonName,
    onComplete = { isLoading = false },
    onError = { errorMessage = it }
)

@get:Bindable
val pokemonInfo: PokemonInfo? by pokemonInfoFlow.asBindingProperty(viewModelScope, null)