Move function to minimize diff with example.

This commit is contained in:
Dillon Kearns 2022-08-24 09:08:15 -07:00
parent e463fe4cb0
commit 9b51b26c72

View File

@ -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 type Msg
= NewItemSubmitted = NewItemSubmitted
| GenerateNextNewItemId Time.Posix | 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 -- UPDATE