type UserModel
= Nothing
| TestModel Test.Model
type alias Model =
{ url: Url.Url
, key: Nav.Key
, count: Int
, newmodel: UserModel
}
TYPE MISMATCH - I cannot update the newmodel
field like this:
74| ( { model | newmodel = testmodel }, Cmd.none)
#^^^^^^^^^#
This testmodel
value is a:
#Test.Model#
But it should be:
#UserModel#