I need to update 2 child components based on the Action/Msg of 1 child 
component. How would I do this?

The UpdateFromChild1 contains a Child1.Msg, which contains an id. I'd like 
to send the id to the models of Child1 update *and* to Child2 update. 

Code:

Main update
---
update msg model = 
  case of msg
    UpdateFromChild1 msg ->
      Child1.update msg Child1.model <---- works, update gets correct 
message with id
      Child2.update *msg* Child2.model <---- does not work, obviously
                     ^---------------------- somehow change this to 
(Child2.Msg id)?
   UpdateFromChild2 msg ->
     -- stuff only child 2 cares about



Main view
---
view model = 
  div [] 
  [ App.map UpdateFromChild1 (Child1.view Child1.model)
  , App.map UpdateFromChild2 (Child2.view Child2.model)
  ]

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to