Can I call store.subscribe method of redux in render() method of react component?
<p>I'm trying to make an e-commerce store in meteor using <strong>react</strong> and <strong>redux</strong>. There is an icon in my navbar that displays total number of items added to the cart. I want to update the counter of items. If I call <strong>store.getState().numOfItems</strong> it displays total number of items added to the cart. but when I add an item to the cart, icon do not update. It only updates when I move onto other pages. (It's a <strong>single page application</strong> ) </p>