In a nested lists `LazyColumn` of `LazyRow` items,...
# compose
i
In a nested lists
LazyColumn
of
LazyRow
items, it seems that the items of each
LazyRow
does not keep the values of any
remember
function across composition if the list is scrolled vertically. Is this a known issue?
z
I believe this is intended. When you scroll an item off-screen, it leaves the composition, and the remembered fields are reset. It might be worth looking into why youre trying to remember things on a per-item basis; and if you really need to - you could remember it outside the item scope (e.g. using the key of an item to access its value).
z
Yep
Also you can use rememberSaveable
i
@Zach Klippenstein (he/him) [MOD] I will give it a try! Thanks for the suggestion
rememberSaveable
solved my issue! Thanks a lot!