1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-20 02:57:05 +00:00

ui: Refactor update and setRoute with updateWith

This commit is contained in:
James Hillyerd
2018-11-22 22:02:01 -08:00
parent 0c9cf81c94
commit e71377f966
5 changed files with 69 additions and 87 deletions

View File

@@ -17,7 +17,7 @@ type alias Model =
{ greeting : String }
init : ( Model, Cmd Msg )
init : ( Model, Cmd Msg, Session.Msg )
init =
let
cmdGreeting =
@@ -26,7 +26,7 @@ init =
, expect = Http.expectString GreetingLoaded
}
in
( Model "", cmdGreeting )
( Model "", cmdGreeting, Session.none )