re: The basic Elm example that I wish I'd had VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Slight update: After adding navigation into another application, which meant needing to add a navigation key, I've ended up re-evaluating this at t...
 

I do like this better. Somehow it feels a little "forced" to make the model as one giant custom type. With this type of edit, you can still model your door/alarm states elegantly and completely with a big custom type, and get all the benefits of that. But other stuff in the model (like navigation key or login status) that doesn't have anything to do with the door state can live separately, as a different piece of the model record.

code of conduct - report abuse