Is there something like `confirmStateChange` for `...
# compose
d
Is there something like
confirmStateChange
for
HorizontalPager
planned? With bottom sheets I often use the pattern: 1. Sheet tells the State holder that it wants to change to e.g. Expanded 2. State holder decides whether to allow or disallow 3. State holder sets new state 4. Sheet uses that to run LaunchedEffect with animateTo(Expanded) Currently
HorizontalPager
provides no callback through which this can be done, it seems to change
PagerState
internally.
oh, found out that I can use
snaphotFlow