mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 05:34:11 +03:00
COMPILER CRASH, where I was hoping for a message telling me which Result.Err tags I need for decoding
This commit is contained in:
parent
6ec7b870df
commit
9e92ad7f30
@ -412,8 +412,9 @@ ClientInit state : {
|
||||
staticViews: Dict HtmlId (Html state),
|
||||
}
|
||||
|
||||
initClientApp : initData, List Str, App state initData -> Result (ClientInit state) [ViewNotFound HtmlId]*
|
||||
initClientApp = \initData, viewIdList, app ->
|
||||
initClientApp : List U8, List Str, App state initData -> Result (ClientInit state) [ViewNotFound HtmlId]*
|
||||
initClientApp = \json, viewIdList, app ->
|
||||
initData <- json |> Decode.fromBytes Json.fromUtf8 |> Result.try
|
||||
state = app.initDynamic initData
|
||||
dynamicViews = app.renderDynamic state
|
||||
unindexedViews = Dict.map dynamicViews translateStatic
|
||||
|
Loading…
Reference in New Issue
Block a user