https://kotlinlang.org logo
Title
m

Mike

04/08/2021, 10:18 AM
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

steelahhh

04/08/2021, 10:54 AM
Probably
Label
– check out the todo sample, specifically
TodoAddStore
or
TodoDetailsStore
a

Arkadii Ivanov

04/08/2021, 10:54 AM
As Aleks mentioned, take a looks at Labels. https://arkivanov.github.io/MVIKotlin/store.html I should describe this in more detail probably.
m

Mike

04/08/2021, 11:00 PM
Thanks