Grigorii Yurkov
10/22/2020, 3:02 PMonResume()
and what I supposed to do now.Zach Klippenstein (he/him) [MOD]
10/22/2020, 3:05 PMLaunchedTask
would be best, since it launches a coroutine that will automatically get cancelled when the function leaves the composition.
If your API is callback based, you could also use onActive
or onCommit
with onDispose
(soon to be renamed to DisposableEffect
).alorma
10/26/2020, 7:01 PMJeremy
10/26/2020, 7:10 PMLaunchedTask
-> https://github.com/jeremyrempel/yahnapp/blob/8d12347c60b6566a1da1af2b9a3051a87eccc2b4/app/src/main/java/com/github/jeremyrempel/yanhnapp/ui/screens/CommentsScreen.kt#L77-L81 . I'm not sure if there is a better wayZach Klippenstein (he/him) [MOD]
10/26/2020, 7:20 PMonCommit
, *Effect
)