Super minor and probably just satisfying a very sp...
# orbit-mvi
c
Super minor and probably just satisfying a very specific need, but found useful to be able to pass down a lambda to wherever you handle the side effects, to simplify posting them, instead of passing the whole
SideEffectEventReceiver
. Especially helpful IMHO if you have your side effect handler broken down in methods. Something like:
Copy code
private val <STATE : Any, EVENT : Any, SIDE_EFFECT : Any> SideEffectEventReceiver<STATE, EVENT, SIDE_EFFECT>.postFunction: (SIDE_EFFECT) -> Unit
    get() = { sideEffect: SIDE_EFFECT -> <http://this.post|this.post>(sideEffect) }
👍 1