Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
update : Action -> Model -> ( Model, Effects Action )
update action model =
case action of
Updated result ->
case result of
Ok response -> -- do things
Err error -> -- handle error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment