How to we update additional entity properties?
Other information:
I would be willing to submit a PR for the docs :heart:
[ ] Yes (Assistance is provided if you need help submitting a pull request) [x] No
I have a reducer where I am updating an entity state by using addAll(). While adding I need to set some other custom entity properties too. I tried checking the docs but couldn't find anything on it. I could have created a second action for just setting those custom properties I guess. But I was wondering if there is a way to set those properties while using adapter methods.
@sagunpandey I would say it depends on what updates you need. Setting some attributes to (nearly) fixed values or complex logic?
And who is the source of the action? GUI? An Effect? Other?
We have this on a recipe's page: Additional state properties.
Feel free to re-open this issue if it's missing something.
on(OrderActions.retActive, (state, { data }) => { return adapter.addAll(data, state) }), is not updating my state i'm using ngrx8, ngrx-entity
