<Kotlin Flow collector gets the initial value only...
# stackoverflow
u
Kotlin Flow collector gets the initial value only then stops one question in Flow... why am I getting the initial value only? despite that I emit a new value in the ViewModel, and the value in the MutableStateFlow changes. but the collector doesn't get any... I change the value from the MainActivity using a menu action: R.id.settings -> viewModel.updateMoveToSettings(true) and in the viewmodel I emit it this way private val _moveToSettings = MutableStateFlow(false) val moveToSettings get()= _moveToSettings fun updateMoveToSettings(value: Boolean)...