what is ngrx createSelector and createFeatureSelector?

Its used as an optimization step for store slices selection. For example, if you return some heavy computation result for some store slice, then using createSelector will do memoization which means it will keep track of last input params to selector and if they are the same as current ones, it will return last result immediately instead of repeating computation.

ref: https://ngrx.io/guide/store/selectors

Leave a Comment

techhipbettruvabetnorabahisbahis forumu