Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Jetpack Compose component used: compiler plugin 1.5.14
Android Studio Build: Android Studio Hedgehog | 2023.1.1
Kotlin version: 1.9.24
the same code runs smoothly on the stable version 1.6.8, where we open a bottom sheet when click button.
Stack trace (if applicable):
java.lang.ClassCastException: kotlin.Unit cannot be cast to androidx.compose.runtime.MutableState
at androidx.compose.runtime.SnapshotStateKt__SnapshotStateKt.rememberUpdatedState(SnapshotState.kt:310)
at androidx.compose.runtime.SnapshotStateKt.rememberUpdatedState(Unknown Source:1)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:118)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)