[x] Feature request
Currently the hardcoded memoization is instance equality check, which doesn't work well with arrays.
e.g. I have an array that changes on certain actions and there are many selectors for this data. Some/most selectors return the same items, but because it's a new array all the selector changes are needlessly triggered.
reselect has createSelectorCreator for that purpose.
Hi @brandonroberts ,
Do you want me to work on this enhancement ?
@roopkt I already have a branch in the works for this, but thanks! Could you take a look at https://github.com/ngrx/platform/issues/604? I believe you added the original functionality
hi @brandonroberts sure let me take a look thanks.
Very impressed! Great job!
Hi @brandonroberts
I am sorry I was completely absorbed in my office project did not get time to work on it.
This is amazing, but it's very hard to find!
It should definitely be included into the NgRx docs with examples:
https://ngrx.io/guide/store/selectors
Most helpful comment
This is amazing, but it's very hard to find!
It should definitely be included into the NgRx docs with examples:
https://ngrx.io/guide/store/selectors