You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Controller is not started lazily if only the controller.effects getter is called (and no other property such as the controller.state is accessed or controller.dispatch is being called).
In a real world example, this would be relebant if e.g. in a transformer an onStart() with an emitEffect() should be called, which would then only be called after an action has been dispatched.
I'm just about to create a PR which adds a test for that as well as a possible fix, if the current behavior is not considered expected.
The text was updated successfully, but these errors were encountered:
The Controller is not started lazily if only the
controller.effects
getter is called (and no other property such as thecontroller.state
is accessed orcontroller.dispatch
is being called).There may be the
start()
logic missing here:control/control-core/src/main/kotlin/at/florianschuster/control/implementation.kt
Lines 130 to 137 in 7aa7330
In a real world example, this would be relebant if e.g. in a transformer an
onStart()
with anemitEffect()
should be called, which would then only be called after an action has been dispatched.I'm just about to create a PR which adds a test for that as well as a possible fix, if the current behavior is not considered expected.
The text was updated successfully, but these errors were encountered: