ATM to manipulate a Fable.Form.Simple.Form.View.Model state we have the following functions:
But if we want to set the state to Success, Error _ then we need to update the record directly:
{
model with
Form.State =
Form.View.Success "You have been logged in successfully"
},
Cmd.none,
We also have the function Form.View.idle which allows to initial the form state to idle by providing the values.
This feels like something is missing and that we have inconsistencies in how these portion of API is designed.
ATM to manipulate a
Fable.Form.Simple.Form.View.Modelstate we have the following functions:Form.View.setLoadingBut if we want to set the state to
Success,Error _then we need to update the record directly:We also have the function
Form.View.idlewhich allows to initial the form state to idle by providing the values.This feels like something is missing and that we have inconsistencies in how these portion of API is designed.