What's the dismiss callback in the `SwipeToDismiss...
# compose
f
What's the dismiss callback in the
SwipeToDismiss
composable?
d
f
i wasn't sure where to call the side effect but it seems that
confirmStateChange
is the right place đź‘Ť Thank you
l
I don’t think
confirmStateChange
is the right place, because it’s will be called even the animation is running. I think you should use
LaunchEffect
and then observe the
isDismissed
property of
DismissState
.
f
@lesincs Thank you very much. I think the documentation above is using
confirmStateChange
tho. Did you take a look at it? They toggle an
unread
boolean.