This is rather simple question: I've one (child) c...
# compose
r
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
AFAIK:
LaunchedEffect
r
thanks. also, is there anyway to launch second operation after first one finish ?
from composables
a
LaunchedEffect run suspend functions, so you can set two operations in sequencs and will be launched after first finished
👍 2
c
Copy code
LaunchedEffect {
  operation1()
  operation2()
}
👍 1