Alright so I tried and got stuck here:
getTimestamps: Int -> Cmd Msg
in my example the time value is in the Main Model so it would be:
getTimestamps: Model -> Cmd Msg
but its the same thing…
The compiler complains because the initialCmd should be of type Cmd
and not Model -> Cmd Msg
in main:
main =
Browser.element
{ init = \_ -> ( initialModel, initialCmd )