https://kotlinlang.org logo
#compose
Title
# compose
g

Grigorii Yurkov

11/21/2020, 10:45 AM
Is it possible to cancel previous
LaunchedEffect
if
args
are changed
Copy code
LaunchedEffect(args) {
    suspendFunction(args)
}
Or it cancels automatically (I have not checked)
Ok, it cancels automatically
👌 2
✔️ 4
m

Marcin Środa

11/23/2020, 7:44 AM
please check @Jorge Castillo post, he described it really well: https://jorgecastillo.dev/jetpack-compose-effect-handlers
🙏 1
13 Views