Vsevolod Ganin
02/10/2021, 8:56 PMDisposableEffect
and LaunchedEffect
are essentially the same except that they use different methods to make the same thing: `DisposableEffect`’s block is blocking and disposes stuff with onDispose
and `LaunchedEffect`’s block is suspending and disposes stuff with scope.cancel()
?Dominaezzz
02/10/2021, 9:00 PMscope.cancel()
? I guess you could use awaitCancellation()
.Dominaezzz
02/10/2021, 9:01 PMAdam Powell
02/10/2021, 9:02 PMVsevolod Ganin
02/10/2021, 9:03 PManimateTo
methods are changed to be suspending now. So I wonder if I can simply change old DisposableEffect
with animateTo
to LaunchedEffect
with new animateTo
:)Adam Powell
02/10/2021, 9:04 PM