function across composition if the list is scrolled vertically. Is this a known issue?
z
Zoltan Demant
12/07/2022, 1:25 PM
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
Zach Klippenstein (he/him) [MOD]
12/08/2022, 5:37 AM
Yep
Zach Klippenstein (he/him) [MOD]
12/08/2022, 5:37 AM
Also you can use rememberSaveable
i
Issa
12/08/2022, 10:23 AM
@Zach Klippenstein (he/him) [MOD] I will give it a try! Thanks for the suggestion