Immutable.js reselect selector
MIT License
createImmutableSelector
is a customized version of reselect's createSelector with Immutable.is as equality check.
npm i create-immutable-selector
import createImmutableSelector from "create-immutable-selector";
const shopItemsSelector = state => state.getIn(["shop", "items"]);
const subtotalSelector = createImmutableSelector(shopItemsSelector, items =>
items.reduce((acc, item) => acc + item.value, 0)
);