Include shared model in local state template modules.

This commit is contained in:
Dillon Kearns 2021-02-27 08:34:55 -08:00
parent 69a8d0cc27
commit 5d44cadbff

View File

@ -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