oolong-kt / oolong

MVU for Kotlin Multiplatform
http://oolong-kt.org
Apache License 2.0
298 stars 14 forks source link

Renders can happen out of order #62

Closed pardom closed 5 years ago

pardom commented 5 years ago

In the case where an effect dispatches a message before the render call, it may render the state for the effect before rendering the prior state.

In this example, a delay was added to workaround the bug:

https://github.com/pardom/dice/blob/master/common/src/commonMain/kotlin/dev/pardo/dice/app/Dice.kt#L50