Re: [elm-discuss] Trigger an action on init instead Cmd.none

2016-07-14 Thread Janis Voigtländer
I also think it is great the FAQs exist. They are a great contribution. For the overwhelming part, Fred Yankowski's contribution! 2016-07-14 22:11 GMT+02:00 Adrián Ribao : > Thank you Janis! > > It was so simple... I spent several hours on this. > > Thank you for the FAQs, this is definitively so

Re: [elm-discuss] Trigger an action on init instead Cmd.none

2016-07-14 Thread Adrián Ribao
Thank you Janis! It was so simple... I spent several hours on this. Thank you for the FAQs, this is definitively something I should have done. I get lost in the documentation. There are information in the packages, the web, and the new guide, so I'm confused sometime. Thank you again for your

Re: [elm-discuss] Trigger an action on init instead Cmd.none

2016-07-14 Thread Janis Voigtländer
Also, it's always a good idea to consult the FAQ if you have a question you are unlikely the first person to have. In this case: http://faq.elm-community.org/17.html#how-do-i-generate-a-new-message-as-a-command Am Donnerstag, 14. Juli 2016 schrieb William Casarin : > Hey Adrián, > > On Thu, Jul

Re: [elm-discuss] Trigger an action on init instead Cmd.none

2016-07-14 Thread William Casarin
Hey Adrián, On Thu, Jul 14, 2016 at 10:19 AM, Adrián Ribao wrote: > I've been trying several hours now to modify it so instead of clicking the > button, on init I could trigger the message JoinChannel. how about this? init = update JoinChannel initModel Cheers, William -- https://jb55.co

[elm-discuss] Trigger an action on init instead Cmd.none

2016-07-14 Thread Adrián Ribao
Hello, I've been reading this example: https://github.com/fbonetti/elm-phoenix-socket/blob/master/examples/Chat.elm It's a chat where you join a channel on a button click. I've been trying several hours now to modify it so instead of clicking the button, on init I could trigger the message Joi