Closed
Description
Hey I've posted two dumb issues today, lets go for three. ;)
Is this on the right track?
const entitiesSortedSelector = createCachedSelector(
entitiesPathSelector,
sortBySelector,
sortOrderSelector,
(entities, sortBy, sortOrder) =>
orderBy(entities.toList().toJS(), getSortIteratee(sortBy), sortOrder);
)((state, { path, sortBy, sortOrder }) => {
const entities = entitiesPathSelector(state, { path });
return `${entities.hashCode()}:${sortBy}:${sortOrder}`;
});
I initially hoped that the resolver function would recieve the same args as the resolved function ( issue #2), if it doesn't then I really want to check that I'm dealing with the same entities collection here ( path param alone isn't enough )
Is the code above a correct path to take ?