--

The main problem is that you're exposing a MutableList var from your VM and reading it directly in Composable. Instead, create a state data class with the val something: List<Whatever> inside and expose it through StateFlow / LiveData / Compose state and you should be fine.

--

--

Patryk Kosieradzki
Patryk Kosieradzki

Written by Patryk Kosieradzki

Senior Android &iOS Engineer @ Moss, based in Warsaw, Poland

Responses (1)