I have a Reselect selector that maps an array of chosen ids into objects from a normalized store.
const activeObjectsSelector = createSelector(
state => state.activeIds,
state => state.objects.byId,
(activeIds, objectsById) => activeIds.map(id => objectsById[id])
)
The problem is that it busts the cache and re-runs anytime new objects are added to the normalized store, because the value of state.objects.byId changes. The only change I care about busting the cache is the value of state.activeIds. Is this possible?