Glad you fixed your problem. If you give the button an onSubmit 
<http://package.elm-lang.org/packages/elm-lang/html/2.0.0/Html-Events#onSubmit> 
event handler, that should prevent the reload from happening, even if you 
are using Html.form.

On Tuesday, April 11, 2017 at 11:46:10 AM UTC-7, Oliver Dunkl wrote:
>
> Thank you for your reply. I have solved my problem after looking hours and 
> hours on my code :) The problem was that I had a button that calls to the 
> backend which I described in my question and the problem was that the 
> button was in a Html.form. Apparently it will first trigger the action and 
> than reloads the page and triggers the init function again.
>
> So Nicholas we had the right answer independently.
>
> Sorry for the noise but maybe I could help other people with the answer :)
>
> thx
> \= odi
>

-- 
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