mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-28 22:37:08 +03:00
Include shared model in local state template modules.
This commit is contained in:
parent
69a8d0cc27
commit
5d44cadbff
@ -125,6 +125,7 @@ buildNoState { view } builderState =
|
||||
buildWithLocalState :
|
||||
{ view :
|
||||
templateModel
|
||||
-> Shared.Model
|
||||
-> List ( PagePath Pages.PathKey, TemplateType )
|
||||
-> StaticPayload templateMetadata templateStaticData
|
||||
-> Shared.RenderedBody
|
||||
@ -140,7 +141,7 @@ buildWithLocalState config builderState =
|
||||
WithStaticData record ->
|
||||
{ view =
|
||||
\model sharedModel allMetadata staticPayload rendered ->
|
||||
config.view model allMetadata staticPayload rendered
|
||||
config.view model sharedModel allMetadata staticPayload rendered
|
||||
, head = record.head
|
||||
, staticData = record.staticData
|
||||
, init = config.init
|
||||
|
Loading…
Reference in New Issue
Block a user