Join Slack
Powered by
Is it possible to cancel previous `LaunchedEffect`...
# 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)
Grigorii Yurkov
11/21/2020, 10:53 AM
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
21
Views
Open in Slack
Previous
Next