In his Elm Europe 2018 talk Richard Feldman discusses using a union type for your Model. I really liked this idea, it helps to avoid polluting my main application state with state that is just used during initialization and then never again.
However when using this programming style, I find the time-travelling debugger that ships with elm-reactor crashes whenever you try to time-travel (with Uncaught TypeError: Cannot read property 'childNodes' of undefined). I have confirmed this with a tiny toy problem, so it’s not something specific to my code.
Is this a known issue, or should I file a bug (if so where is the best place)?
Does anybody know of a workaround? I suppose I could do something like:
type alias Model =
{ state : State }
type State
= Initializing Config
| MainProgram MainState
but it feels a little clunky.