> If you implement the Router in Elm (the implementation starts with Elm), then 
> Pages are a reasonable abstraction. 

In this scenario - do you wire the state from each separate “page” up into the 
top level app.elm (or wherever the routing lives), or do you let each page 
manage it’s own state without any connection to the top level state? In other 
words: does your top level state look something like this:

        { activePage : String
        , itemListPageState : List Item
        , itemDetailPageState : Item }

or does the top level only hold its own state? Something like this:

        { activePage : String }

You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to