java.lang.IllegalArgumentException: Index should be non-negative (-1)
at androidx.compose.foundation.lazy.LazyListScrollPosition.update-AhXoVpI(LazyListScrollPosition.kt:98)
at androidx.compose.foundation.lazy.LazyListScrollPosition.updateScrollPositionIfTheFirstItemWasMoved(LazyListScrollPosition.kt:94)
at androidx.compose.foundation.lazy.LazyListState.updateScrollPositionIfTheFirstItemWasMoved$foundation_release(LazyListState.kt:301)
rememberLazyListState(initialFirstVisibleItemIndex = -1)
とinitialFirstVisibleItemIndexに負の値を指定すると内部で例外が発生する。
指定した箇所(rememberLazyListState)ではなく内部で発生しているので原因を特定するのが結構難しかった