you can try using StateFlow something like this: Your ViewModel
private val _repDataPoints = MutableStateFlow<List<RepDataPoint>>(emptyList())
val repDataPoints = _repDataPoints.asStateFlow()
Your Composable:
val list by viewModel.repDataPoints.collectAsStateWithLifecycle()
And finally to modify repDataPoints value you can do something like that:
fun addNewValue() {
_repDataPoints.update { it + RepDataPoint() }
}
I think the problem is your list that you have in you viewmodel cant notify to your composable and never recompose