Elm programs that don't die

Thanks so much for this great explanation, it was thorough and very well documented. Really impressive work!

Im definitely going to steal the VirtualDom_removeAllEventListenersHelp(tNode) code as that was absolutely a head scratcher for me.

Adding the $__shutdown on the stepper is super clever and that means I can just call it from my die code and remove all event listeners from the tree, which is a huge improvement.

It would be lovely to not need to brute force the code in to the compiler output so I’m definitely keen for a “it just works” solution. Especially HMR.

I’ll follow your progress!

2 Likes