Halil Ozercan
09/12/2020, 3:04 PMrememberDismissState
doesn't receive vararg inputs: Any?
kind of anchor to reset the state if some of the dependencies change? This certainly proved a challenge when I wanted to use SwipeToDismiss
on list items. Because Lazy APIs reuse the same composable with different data, dismissState has to reset everytime the data changes.SwipeToDismiss
, it only supports horizontal direction. I happened to achieve a very satisfactory result by just adding an orientation argument and selectively choosing offsetX or offsetY according to the orientation.Adam Powell
09/12/2020, 3:15 PMrememberFooState
functions go away in favor of more standard uses of remember
itself, but each case we need to address has needed some thinkingHalil Ozercan
09/12/2020, 8:34 PMSean McQuillan [G]
09/14/2020, 6:24 PMkey
API before the library fixes get in.
https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary.html#key