[elm-discuss] Re: Call of init function behaviour

2017-04-11 Thread Oliver Dunkl
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 t

[elm-discuss] Call of init function behaviour

2017-04-10 Thread Oliver Dunkl
When will the init function call? I have a strange (for me) behaviour in my flow. I have a backend call in which some entity will be saved. I have a page redirect logic e.g.: type alias Model { page : Int } view model = case model.page of 0 -> viewA 1 -> viewB ... In my

[elm-discuss] Randomly call init function

2017-04-10 Thread Oliver Dunkl
I have a strange (for me) behaviour in my flow. I have a backend call in which some entity will be saved. I have a page redirect logic e.g.: type alias Model { page : Int } view model = case model.page of 0 -> viewA 1 -> viewB ... In my 'update' function I will set this p