Angular · Senior · Question 37 of 75

Why are NgRx selectors created with createSelector memoized?

Explanation

Selectors compose (selectVisibleTodos from selectTodos and selectFilter) and only recompute when an input slice changes, which keeps OnPush components efficient.

Further reading

Problem with a question

Angular · Senior · question 37

Test yourself

Take the Angular · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz