When a reducer just emits previousState, there's no reason to call render. In fact, redrawing the UI in cases like this can cause jank (e.g. messing up snackbar animations by showing the same snackbar twice in rapid succession).
I'd fix this with a distinctUntilChanged right after scan in compose
When a reducer just emits previousState, there's no reason to call render. In fact, redrawing the UI in cases like this can cause jank (e.g. messing up snackbar animations by showing the same snackbar twice in rapid succession).
I'd fix this with a
distinctUntilChanged
right afterscan
incompose