Simon Stahl
03/08/2022, 6:03 PMritesh
03/08/2022, 7:40 PMSimon Stahl
03/08/2022, 8:11 PMCasey Brooks
03/09/2022, 12:21 AMmutableStateOf
uses a structuralEqualityPolicy()
, which should not trigger recomposition if the state value is updated but does not actually change. So a starting point might be to figure out where you're using a different policySimon Stahl
03/09/2022, 12:58 AMbottomSheetState.progress
or with lazyListState.layoutInfo
. I believe either the progress
or the layoutInfo
triggers a state update if the instance changes internally even though it contains the same values as before. I got partially around this by wrapping them in a derivedStateOf
, but this doesn't feel ideal.Simon Stahl
03/09/2022, 12:58 AMonEach{}
like flows that you can see when they triggerefemoney
03/09/2022, 9:54 AMsnapshotFlow
that you observe in the same mannerSimon Stahl
03/09/2022, 4:45 PMSimon Stahl
03/09/2022, 4:45 PM