Closed kagg886 closed 13 hours ago
Add this package: https://github.com/icerockdev/moko-parcelize
Add @Parcelize annotation and Parcelable implementation to your Screen class and data classes:
@Parcelize
class IllustDetailScreen(private val illust0: Illust) : Screen,Parcelable
@Parcelize
@Serializable
data class Illust(
val id: Int,
val title: String,
): Parcelable
this Illust
class has the property typed kotlinx.datetime.Instant
it not be serialized,can we do it by @Parcelize
?
In this example Parcelize: kotlinx.datetime.LocalDateTime
In this example Parcelize: kotlinx.datetime.LocalDateTime
it works, thks!
this is my screen defination:
when i press home on emulator, the app was crash and logged this error:
I was puzzled that the Saver seems think it is all Parcelable, so can we support the @Serializable tag?