Hi there,
just wondering how do you guys handle the shopping cart functionality in your onlineshop. Normally when as user clicks on "add to cart" I would call my api(s) and let the backend handle this (add item, delete item, update quantity,..). For safety reasons I didn´t want the frontend to handle all of that ( reducing the risk of manipulation). The problem is that it kinda disrupts the flow because it takes a second or two until I get the data with the updated cart. So my question now is how do you handle this ? Do you mantain a second cart in the local storage or what is your solution for that?
Thanks