Thanks for the example. I usually consider all that to be UI-adjacent so that’s why I didn’t consider it to be a non-UI example.
I’m not worried about performance. In my experience, the dispatch pattern seems to do fine for UI work as well. I forgot to mention that I used this pattern in:
- dwayne/elm-2048 for touch control. Nobody complained about performance .
- dwayne/elm-debouncer for debouncing and throttling. See the trailing edge demo. In fact,
dispatch
is central to the UX of the API.