Use new .value helpers.

This commit is contained in:
Dillon Kearns 2022-09-21 09:14:53 -07:00
parent 3708ec261d
commit 21e371c80c

View File

@ -59,15 +59,15 @@ otherFile routes phaseString =
config = config =
{ init = Elm.apply (Elm.val "init") [ Elm.nothing ] { init = Elm.apply (Elm.val "init") [ Elm.nothing ]
, update = update.value [] , update = update.value []
, subscriptions = Elm.val "subscriptions" , subscriptions = subscriptions.value []
, sharedData = , sharedData =
Elm.value { name = "template", importFrom = [ "Shared" ], annotation = Nothing } Elm.value { name = "template", importFrom = [ "Shared" ], annotation = Nothing }
|> Elm.get "data" |> Elm.get "data"
, data = Elm.val "dataForRoute" , data = dataForRoute.value []
, action = Elm.val "action" , action = action.value []
, onActionData = Elm.val "onActionData" , onActionData = onActionData.value []
, view = todo , view = todo
, handleRoute = Elm.val "handleRoute" , handleRoute = handleRoute.value []
, getStaticRoutes = , getStaticRoutes =
case phase of case phase of
Browser -> Browser ->
@ -151,10 +151,10 @@ otherFile routes phaseString =
, annotation = Nothing , annotation = Nothing
} }
, sendPageData = Elm.val "sendPageData" , sendPageData = Elm.val "sendPageData"
, byteEncodePageData = Elm.val "byteEncodePageData" , byteEncodePageData = byteEncodePageData.value []
, byteDecodePageData = Elm.val "byteDecodePageData" , byteDecodePageData = byteDecodePageData.value []
, encodeResponse = encodeResponse.reference , encodeResponse = encodeResponse.reference
, encodeAction = Elm.val "encodeActionData" , encodeAction = encodeActionData.value []
, decodeResponse = decodeResponse.reference , decodeResponse = decodeResponse.reference
, globalHeadTags = , globalHeadTags =
case phase of case phase of