Great article thanks, I'll Be looking into using container components from now on. By the way, you can probably use store.select directly, thus making pipe unnecessary?
Hi thanks! You can indeed go directly with store.select, but the benefit of piping in custom selectors and using the createSelector from NgRx Store is that you get memoized selectors.
Memoized selectors cache the data and provide efficient re-rendering if needed, because a call doesn't have to be made all the way back to the resource if the data hasn't changed and another component needs it.
Great article thanks, I'll Be looking into using container components from now on. By the way, you can probably use store.select directly, thus making pipe unnecessary?
Hi thanks! You can indeed go directly with store.select, but the benefit of piping in custom selectors and using the
createSelector
fromNgRx Store
is that you get memoized selectors.Memoized selectors cache the data and provide efficient re-rendering if needed, because a call doesn't have to be made all the way back to the resource if the data hasn't changed and another component needs it.
Ok, good to know :) thanks!