Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework the APIs which manipulate the form state #47

Open
MangelMaxime opened this issue Feb 15, 2024 · 0 comments
Open

Rework the APIs which manipulate the form state #47

MangelMaxime opened this issue Feb 15, 2024 · 0 comments

Comments

@MangelMaxime
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant