diff --git a/examples/todos/app/Route/Visibility__.elm b/examples/todos/app/Route/Visibility__.elm index 77c0f47f..c9420df4 100644 --- a/examples/todos/app/Route/Visibility__.elm +++ b/examples/todos/app/Route/Visibility__.elm @@ -69,17 +69,6 @@ type alias Entry = } -init : - Maybe PageUrl - -> Shared.Model - -> StaticPayload Data ActionData RouteParams - -> ( Model, Effect Msg ) -init maybePageUrl sharedModel app = - ( { nextId = app.data.requestTime } - , Effect.none - ) - - type Msg = NewItemSubmitted | GenerateNextNewItemId Time.Posix @@ -100,6 +89,17 @@ type alias ActionData = {} +init : + Maybe PageUrl + -> Shared.Model + -> StaticPayload Data ActionData RouteParams + -> ( Model, Effect Msg ) +init maybePageUrl sharedModel app = + ( { nextId = app.data.requestTime } + , Effect.none + ) + + -- UPDATE