Whenever I’m changing list present in state below ...
# orbit-mvi
r
Whenever I’m changing list present in state below crash happening, It is intermittent and happens when i scroll the lazyverticalgrid very fast. Compose version -
1.2.0-beta02
Copy code
java.lang.IllegalStateException: Reading a state that was created after the snapshot was taken or in a snapshot that has not yet been applied
        at androidx.compose.runtime.snapshots.SnapshotKt.readError(Snapshot.kt:1827)
        at androidx.compose.runtime.snapshots.SnapshotKt.readable(Snapshot.kt:1822)
        at androidx.compose.runtime.snapshots.SnapshotKt.readable(Snapshot.kt:1813)
        at androidx.compose.runtime.SnapshotMutableStateImpl.getValue(SnapshotState.kt:130)
        at androidx.compose.animation.core.AnimationState.getValue(AnimationState.kt:344)
        at androidx.compose.animation.core.SuspendAnimationKt.animateDecay(SuspendAnimation.kt:190)
        at androidx.compose.animation.core.SuspendAnimationKt.animateDecay$default(SuspendAnimation.kt:182)
        at androidx.compose.foundation.gestures.DefaultFlingBehavior.performFling(Scrollable.kt:442)
I’ve checked few answers in stackoverflow, want to know if
reduce
block causing this issue or not https://stackoverflow.com/questions/66891349/java-lang-illegalstateexception-when-using-state-in-android-jetpack-compose