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 version: 1.7.5
Jetpack Compose component(s) used: LazyVerticalGrid + itemsIndexed
Android Studio Build:
Kotlin version: 1.9.24
Steps to Reproduce or Code Sample to Reproduce:
In the example above, because
SomeTypeSafeId
cannot be saved to aBundle
(not Serializable, not Parcelable, etc.), the app will crash when evaluating thekey
.It would be great if there were a Compose Lint rule that verifies that the return type of the
key
lambda can be saved to aBundle
to help prevent runtime errors.