I'm developing an ecommerce app using MERN Stack. I was trying to find the best way I could to store products in a cart storage using Redux, but if I'm going to just store the products informations it can get outdated from time to time or even informations being changed by the user ( since it's redux, user can edit all the informations inside that cart storage I think ).
Like, if I store a certain price now It can be not the same in the future. What can I do to make these informations all up to date? I thought on storing only products ids in the cart and fetching the informations when needed, but I don't know if this is the right way as it could use alot of the database if the cart is too big. Any suggestion is welcome!