Open aparnas12 opened 1 year ago
This is because there is no useEffect in the cart component to set the cart state with the contents of the localstorage cart item ?
When you add the useEffect do thorough testing to make sure bo duplicate entries etc.
This is because there is no useEffect in the cart component to set the cart state with the contents of the localstorage cart item ?
When you add the useEffect do thorough testing to make sure bo duplicate entries etc.