This is rather simple question:
I've one (child) compose screen which gets its argument from parent composable. I want to use that property to call a ViewModel function when child composable screen gets created. Where should I make that function call? Randomly inside composable? Inside
remember
?
a
alorma
08/18/2021, 11:00 AM
AFAIK:
LaunchedEffect
r
rajesh
08/18/2021, 11:11 AM
thanks. also, is there anyway to launch second operation after first one finish ?
from composables
a
alorma
08/18/2021, 11:12 AM
LaunchedEffect run suspend functions, so you can set two operations in sequencs and will be launched after first finished