AlexGladkov / Odyssey

Odyssey it's a declarative multiplatform navigation library for Multiplatform Compose

Home Page:https://youtube.com/c/MobileDeveloper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing ViewActions

VitalyPeryatin opened this issue · comments

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

commented

ViewModel is not a part of Odyssey