AlexGladkov / Odyssey

Odyssey it's a declarative multiplatform navigation library for Multiplatform Compose
https://youtube.com/c/MobileDeveloper
MIT License
255 stars 21 forks source link

Missing ViewActions #66

Closed VitalyPeryatin closed 1 year ago

VitalyPeryatin commented 1 year ago

No opportunity to change extraBufferCapacity param for _viewActions SharedFlow, so when ViewModel send several actions in sequence, only the last action will be executed. I think there is needs more flexibility.

For example:

FeatureViewModel {
    fun someMethod() {
        ...
        viewAction = FeatureAction.Vibrate()
        viewAction = FeatureAction.Close()
        ...
    }
}

There is FeatureAction.Vibrate will be missed

AlexGladkov commented 1 year ago

ViewModel is not a part of Odyssey