I need to change swipeStates when list param is changed, but rememberSwipeableCardState is composable function so I cannot do it I receive an error:
@Composable invocations can only happen from the context of a @Composable function
LaunchedEffect(list) {
if (list != null) {
swipeStates = list.map { it to rememberSwipeableCardState() }
}
}
How to create such workaround for this mechanism?