How to use LiveData, RxJava, Flow in Jetpack Compose – Alex Styl

preview_player
Показать описание

You can still use LiveData, RxJava Observables, Kotlin Flows to represent state in Jetpack Compose. All you have to do is use the respective extension functions. They convert the respective reactive object into a Jetpack Compose state.

Рекомендации по теме
Комментарии
Автор

I feel like I'm on the right channel to learn Jetpack Compose. Short and clear. Most of the other channels make it complicated as if we know everything.

hcaltay
Автор

Hi! Good content!

Quick question, it happens that I actually prefer to use LiveData in the VM instead of mutableStateOf(). Do you know if this compatibility has been added as a way to help migration, or if it's truly a matter of preference?
I mean, will it happen sometime that these compatibility methods will be deprectated? or even are less performant, or not the google's preferred way?

arielgoska
Автор

Why we should not use them directly instead of State, What is the secret of State keyword??
And What happens if we use them instead of State?
Thanks a lot

Adam
visit shbcf.ru