Note that there are drawbacks to storing functions in your Msg type (same problems also apply to the Model type) Implications of storing functions in model or msg type
MartinS
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Elm Design Question: Task vs Cmd msg | 4 | 3822 | July 2, 2019 | |
| `Task.perform`/`Time.now` called once but firing twice | 6 | 684 | April 22, 2023 | |
| ELI5: Commands Usage | 9 | 1415 | March 25, 2018 | |
| Chaining initialisation commands | 3 | 3185 | October 26, 2018 | |
| Batching updates | 7 | 2519 | December 30, 2018 |