Is there a recommended way to fire off a one-time ...
# mvikotlin
m
Is there a recommended way to fire off a one-time event from the Store to the View? Currently I’m setting a bool and then clearing it (or using the diff tool), though I don’t need to store these one-time events in the state or model. For example, a one-time event could be: Scroll to the top of the current view
s
Probably
Label
– check out the todo sample, specifically
TodoAddStore
or
TodoDetailsStore
a
As Aleks mentioned, take a looks at Labels. https://arkivanov.github.io/MVIKotlin/store.html I should describe this in more detail probably.
m
Thanks