form icon indicating copy to clipboard operation
form copied to clipboard

Example of @angular-redux/form with ImmutableJS

Open adros opened this issue 8 years ago • 1 comments

This is a...

  • [ ] feature request
  • [ ] bug report
  • [x] usage question

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.

adros avatar Oct 03 '17 09:10 adros

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?

smithad15 avatar Jan 21 '18 05:01 smithad15