Skip to content

Rework the APIs which manipulate the form state #47

@MangelMaxime

Description

@MangelMaxime

ATM to manipulate a Fable.Form.Simple.Form.View.Model state we have the following functions:

  • Form.View.setLoading

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions