I’m working on a food delivery application.
When user clicks on Add button in the menu page, I’m doing this
- Create a new cart items
- Create a new cart and add Step 1’s item to items
- Make changes to user, cart = Step 2s cart.
All this is working pretty well since last week. But now when I’m testing it again, items are getting deleted themselves. When I add an item to the cart, it’s getting added and deleted like after 2-3secs all by itself.
Here are the 2 videos, 1st one shows how it was working till yesterday and 2nd one shows how its behaving now
Video 1 - https://youtube.com/shorts/JeUUZiIDpos?feature=share
Video 2 - https://youtube.com/shorts/lDH25uOJHxs?feature=share