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

Froms example - add/edit array of elephant or lion. #5

Open
murraybauer opened this issue Feb 4, 2017 · 1 comment
Open

Froms example - add/edit array of elephant or lion. #5

murraybauer opened this issue Feb 4, 2017 · 1 comment

Comments

@murraybauer
Copy link

Great example app!

Would be interested to see the example include of how angular redux forms would work when adding or editing an elephant or lion with a form to the existing state array.

I am trying to understand the benefits using redux for forms (in a project that already uses redux for state management). The feedback form example with a default reducer is quite basic and maybe most would just still use a generic angular form and access the .valueChanges observable of a particular form control to compute the characters remaining.

@SethDavenport
Copy link
Member

Yeah the example is new and needs some beefing up. PRs welcome :)

As for the value of @angular-redux/forms over the basic .valueChanges stuff I guess it depends on your use case.

I have found that managing complex reactive logic with very large forms gets cumbersome quickly. Once you are deriving behaviour from a bunch of fields simultaneously things can get a bit hairy especially to debug. Personally I find that if it's all in the store I can use DevTools to help me inspect, rewind etc. just as I would with any other app state.

I also personally find the built-in form builder stuff a bit weird to use, and this lets me avoid a lot of it by building validations etc in a more framework-agnostic way. But this is I admit a matter of taste.

Tl;Dr I would say use this if you want to be able to use Redux DevTools on your form state.

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

2 participants