From aa1a4ba0175e2fab0a4caaf42d83e5a3d1bb76e1 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Thu, 15 Sep 2022 14:32:25 -0700 Subject: [PATCH] Geneate more config. --- codegen/GenerateMain.elm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codegen/GenerateMain.elm b/codegen/GenerateMain.elm index 470f86db..271e2be5 100644 --- a/codegen/GenerateMain.elm +++ b/codegen/GenerateMain.elm @@ -62,7 +62,9 @@ otherFile routes phaseString = { init = todo , update = todo , subscriptions = todo - , sharedData = todo + , sharedData = + Elm.value { name = "template", importFrom = [ "Shared" ], annotation = Nothing } + |> Elm.get "data" , data = todo , action = todo , onActionData = todo