forkActionState :: forall m s. Plus m => MonadAff m => m (s -> s) -> (s -> m s) -> (s -> m s)
Another common variant on the
m (s->s) may take a while (should not be restarted) and returns a state modification function
s -> m s takes in the current state, and modifies it on events
forkActionState axn has the shape
(s -> m s) -> (s -> m s). So it can be "stacked" to fork multiple actions.
forkActionState axn1 $ forkActionState axn2 $ forkActionState axn3 $ render initialState.