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 | 5 | 3792 | July 12, 2019 | |
| `Task.perform`/`Time.now` called once but firing twice | 7 | 667 | May 2, 2023 | |
| ELI5: Commands Usage | 9 | 1388 | March 25, 2018 | |
| Chaining initialisation commands | 4 | 3161 | November 5, 2018 | |
| Batching updates | 8 | 2478 | January 9, 2019 |