News for hackers. Stuff that matters.
Re:The Elm Architecture by hawkice on Sunday August 26, 2018 @12:44PM (#17846648)
Turning Html Msg types into actual Dom nodes means hooking up the event handlers so that they call update with the Msg the event handler is given. Browser.sandbox is building the Dom nodes and has the update function.
Re:The Elm Architecture by Touche on Sunday August 26, 2018 @12:46PM (#17846658)
Yeah, I got that far. How does it know what it should turn into an Update handler though?
Re:The Elm Architecture by neoberg on Sunday August 26, 2018 @01:27PM (#17846821)
Browser.sandbox, Browser.application etc. are your app's runtimes. (Or they are the doors to the runtime)

Subscriptions or DOM elements can generate Msgs and every Msg causes an update cycle.

Re:The Elm Architecture by hawkice on Sunday August 26, 2018 @12:48PM (#17846667)
You pass it the update function, the one function handles all updates. Typically, you'll have a case statement in that function to dispatch it out to something more specific.