Gabriel11/04/2020, 8:50 AM
but doing this gives me an error:
@Mock lateinit var viewModel: ImageListViewModel ... `when`(viewModel.imageItems).thenReturn(listOf())
where imageItems is
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object androidx.compose.runtime.State.getValue()' on a null object reference
would anyone know what I'm doing wrong?
var imageItems: List<ImageItem> by mutableStateOf(listOf()) private set
is something that's come about because of compose?