angular-redux / form

Keep your Angular2+ form state in Redux
MIT License
41 stars 15 forks source link

Example of @angular-redux/form with ImmutableJS #45

Open adros opened 6 years ago

adros commented 6 years ago

This is a...

Environment

NodeJS Version: latest Typescript Version: latest Angular Version: latest @angular-redux/store version: latest @angular/cli version: (if applicable) OS: Linux

Additional Notes:

Could you provide an example of how to use immutable store state with angular forms?

@angular-redux/form declares that ImmutableJS integration is provided seamlessly, but I cannot get it work. I have problem with @angular/forms which does not work if I connect a form with immutable instance (Map or Record).

I would say that forms does not support ImmutableJS as 'model' (because of FormGroup.prototype._checkAllValuesPresent) and maybe I should ask this at @angular/forms, but as long as you declare that you support it, I think that I am doing something wrong.

smithad15 commented 6 years ago

From my understanding this was previously implemented using some introspection techniques in order to convert to/from Immutable objects. I'm not sure if the Immutable abilities have been tested for some time unfortunately. Can you please provide a reproduction of where you are having issues?