How can I keep track of changes made in redux store
<p>I do not want to call store.subscribe method. I just want to sync the store state with the component's state.
<a href="https://i.stack.imgur.com/pPkGw.png" rel="nofollow">I am trying to make a shopping cart</a>
- There is a component <strong>CartItems</strong> that displays <strong>SignleCartItem</strong> by passing props to SingleCartItem component using map function.</p>

<p>Whenever user updates the quantity SignleCartItem dispatches an action and store saves the total items added to the cart and their price.</p>

<p>Now the problem is that the component that displays SubTotal and Total of the cart items do not sync the state of the store with the its state ( which displays total ). </p>

<h2>Making it simple:</h2>

<blockquote>
  <p>One component updates the store state, other component is not syncing
  it on run time.</p>
</blockquote>

<p>PS: Please ignore the product detail :P</p>