<Lazy MutableStateFlow> I need to change state in ...
# forum
r
Lazy MutableStateFlow I need to change state in @Composable without its recomposition. val state by viewModel.state.collectAsState() LaunchedEffect(currentValue) { if (currentValue == Done) viewModel.state.value = null } The way I thought about is something like to split variables: val state = Done val stateFlow by MutableStateFlow(state) But not sure it should work this way. So, what the current methods to solve the problem? Have no answers from SOF. 1 post - 1 participant <a...