|
|
|
|
|
by pdamoc
1837 days ago
|
|
> I’ve never fully understood why the events emit a value of some message type In Elm, the Model can be updated faster than the DOM. In other words, the view is rendered at the speed of requestAnimationFrame but the model can change in between animation frames. This means that if you handle model changes inside the view you might get out of sync with the model. Here is a program [1] that shows this problem. If you click "SnapShot" you will sometimes get the same number but sometimes get different numbers. [1] https://ellie-app.com/dmddFd9whtYa1 |
|