iroyo
08/31/2022, 12:31 PMPost
is (in theory) stable but a ImmutableList of Post is not... Am I missing something?
stable class Post {
stable val id: String
stable val title: String
stable val subtitle: String
stable val description: String
stable val tags: ImmutableList<String>
stable val imageUrl: String
stable val type: PostType
<runtime stability> =
}
the strange thing is the empty “<runtime stability>”
then I wrap this into a sealed with 3 states (this is for extra context but not directly related)
stable class Content {
stable val showError: Boolean
stable val tags: ImmutableList<Tag>
unstable val posts: ImmutableList<Post> <------- ?¿?¿?¿
}
the Compose result is:
restartable scheme("[androidx.compose.ui.UiComposable, [_]]") fun DiscoverList(
stable scrollState: LazyGridState
unstable items: ImmutableList<Post> <-------- ?¿?¿
stable onItemViewed: Function2<Post, Int, Unit>
stable onItemClicked: Function2<Post, Int, Unit>
stable header: Function2<Composer, Int, Unit>
)
Post is a simple data class… is it because it has a List of Strings?Zoltan Demant
08/31/2022, 1:24 PMiroyo
08/31/2022, 1:25 PMstable class PostType {
stable val mode: PostMode
<runtime stability> = Stable
}
iroyo
08/31/2022, 1:28 PMZoltan Demant
08/31/2022, 1:34 PMZoltan Demant
08/31/2022, 1:34 PMiroyo
08/31/2022, 2:05 PMZoltan Demant
08/31/2022, 2:18 PMiroyo
08/31/2022, 3:14 PMZoltan Demant
08/31/2022, 3:42 PMste
08/31/2022, 4:52 PMImmutableList
are you using?Jon Boekenoogen
09/01/2022, 3:08 AMJon Boekenoogen
09/01/2022, 3:10 AMiroyo
09/01/2022, 6:13 AM