:fire: Quick setup for performance orientated, offline-first React.js applications featuring Redux, hot-reloading, PostCSS, react-router, ServiceWorker, AppCache, FontFaceObserver and Mocha.
Hey guys, how are you? I’m having an issue with selectors, i think there is something i don’t understand. I have the following state
{
home: {
cart: {
id1: 3,
id2: 4
}
}
}
And i want to make a selector for amount of products by id. But i’m not sure how can i adapt this https://github.com/reduxjs/reselect#accessing-react-props-in-selectors to my solution. Can anybode help me with this? Thanks!
export const makeSelectCart = () =>
createSelector(
selectHome,
substate => substate.cart,
);