-
Notifications
You must be signed in to change notification settings - Fork 315
Open
Description
Describe the bug
When you change the quantity in the cart using the plus and minus buttons, a request is sent to the /cart/ with every single click. This call isn’t particularly fast to begin with, and it becomes even more problematic when a large number of requests are sent in quick succession (see screenshot). Is this something that could be improved?
To Reproduce
Steps to reproduce the behavior:
- Add a product to the cart
- Open the cart page with the network inspector attached
- Click 10 times in quick succession on the plus-button to increase the quantity to 11
- Check the network inspector: there are 10 requests to /cart/
Also reproduceable on https://catalyst-demo.site/.
Expected behavior
When clicking in quick succession on the plus of minus button, I don't expect a direct request for each click. Instead, I expect a debounce, and only one request after some time (let's say 300-500ms).
Metadata
Metadata
Assignees
Labels
No labels