Let's suppose I have a `swipeableState` like in t...
# compose
d
Let's suppose I have a
swipeableState
like in this example: https://developer.android.com/jetpack/compose/gestures#swiping . Since
swipeableState.snapTo(...)
is a suspend function, I probably need to call it from a side effect. Whats the correct way to call this function inside of a composable?
m
You can make use of
rememberCoroutineScope()
s
LaunchedEffect
is a good go-to side effect for coroutines
👍 1
d
Thank you very much.