Sergio Moral
05/06/2025, 11:26 AMLazyColumn
that displays several composables, and I’d like each of them to manage their own logic independently.
My use case:
Each composable in the list has its own state — for example, a “like” button that can be either active or inactive. I think it would make sense for each item to have its own ViewModel, so it can connect to the Room database and manage its own state.
I’ve tried a few approaches, but haven’t had much luck so far. I’d love to hear if anyone has tackled something similar and what worked for you. Thanks in advance!Pablichjenkov
05/06/2025, 12:40 PMPablichjenkov
05/06/2025, 12:44 PMSergio Moral
05/06/2025, 2:54 PMPablichjenkov
05/06/2025, 3:42 PMSergio Moral
05/06/2025, 3:43 PMPablichjenkov
05/06/2025, 5:54 PMColton Idle
05/06/2025, 10:30 PMSergio Moral
05/07/2025, 6:19 AM