Hi, I have a sub collection of my users table called 'cartitems'. When I add an item to the cart it populates this collection and the user can order. The order is saved also in a sub collection called 'orders' along with the cart items. However the cart items remain in the cart and if you remove them they also are removed from the order (well actually the reference remains in the order collection, but to something that no longer exists)
What is the best way to handle this please? App state is no good for my use case.
Hope that makes sense
Thanks