How to properly use createSelector to memoize a selector which maps over an object I have this selector: