mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-24 12:22:27 +03:00
Move function to minimize diff with example.
This commit is contained in:
parent
e463fe4cb0
commit
9b51b26c72
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user