Skip to content

Instantly share code, notes, and snippets.

@marick
Created February 21, 2017 23:11
Show Gist options
  • Save marick/1732e3091e1992a3673c2b940301f9d6 to your computer and use it in GitHub Desktop.
Save marick/1732e3091e1992a3673c2b940301f9d6 to your computer and use it in GitHub Desktop.
update : FormOperation -> Form -> Model -> (Model, Cmd Msg)
update op form model =
case op of
CancelEdits ->
model |> Form.givenOriginalAnimal form upsertAnimal |> noCmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment