Daniel Weidensdörfer

    Daniel Weidensdörfer

    1 year ago
    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

    ms

    1 year ago
    You can make use of
    rememberCoroutineScope()
    Sean McQuillan [G]

    Sean McQuillan [G]

    1 year ago
    LaunchedEffect
    is a good go-to side effect for coroutines
    Daniel Weidensdörfer

    Daniel Weidensdörfer

    1 year ago
    Thank you very much.