Re: [elm-discuss] How do you handle dependencies between updaters?

2017-03-21 Thread Witold Szczerba
My approach is: there is one specific `Feature{X,Y,…}Msg` for each feature, so the main `update` function has only one entry for each "submodule". Each submodule's update looks like this: update : FeatureXMsg -> Model -> ( Model, Cmd Msg ) The key is to have it just like this everywhere. Each

[elm-discuss] How do you handle dependencies between updaters?

2017-03-20 Thread Eirik Sletteberg
In larger Elm apps, it makes sense to divide Updaters so you can package-by-feature. For example, a single page application could have updaters like this: - Configuration updater - Session updater - User Profile updater - User Settings updater - Content updater - Some other business specific