Kinto / elm-kinto

An Elm client for the Kinto API
http://package.elm-lang.org/packages/Kinto/elm-kinto/latest
Other
28 stars 7 forks source link

Another attempt at solving the form/main communication elegantly #1

Closed magopian closed 8 years ago

magopian commented 8 years ago

This is imho a better, more explicit solution to the problem at hand (communicating from the child to the parent that the form has been submitted).

Having a Form.Msg.Submit message is relevant I think, as I'll demonstrate in another commit: if the Form module needs to do anything to the form when it's submitted, regardless of what the parent does. Eg: change the submit button to reflect the fact that it's been submitted, maybe empty the input fields...

n1k0 commented 8 years ago

Also this paves the way to further reusability, as we may want to edit records at some point too :)