Eric Womer
10/09/2022, 2:13 PMAdam Powell
10/09/2022, 3:01 PM@Composable
function is declarative. LiveData observers are about applying changes when data changes occur, but a Compose composition is already an engine for doing this. Check out the LiveData.observeAsState
extension function; you can call it from inside of a @Composable
instead of manually adding observers to the LiveData.Eric Womer
10/09/2022, 4:08 PMAdam Powell
10/09/2022, 4:16 PMEric Womer
10/09/2022, 4:19 PMAdam Powell
10/09/2022, 4:22 PMAdam Powell
10/09/2022, 4:22 PMEric Womer
10/09/2022, 4:24 PMAdam Powell
10/09/2022, 4:25 PMAdam Powell
10/09/2022, 4:25 PMEric Womer
10/09/2022, 4:30 PMEric Womer
10/09/2022, 4:30 PMEric Womer
10/09/2022, 4:31 PM