Closed sofiamatulis closed 2 weeks ago
I can't seem to reproduce this anymore 😅 I must've been previewing the live store and getting the existing behaviour.
~I noticed when I time my clicks so I only click when the loading bar is active, it will sometimes decrease the number instead of increasing it:~
https://github.com/Shopify/dawn/assets/590055/31fdcae8-d1b6-418d-869b-a43ffd850159
PR Summary:
Before (user blocked until the current call being made is done):
After:
Why are these changes introduced?
Fixes #3417 https://github.com/orgs/Shopify/projects/6397/views/28?pane=issue&itemId=59790024
What approach did you take?
I am reusing the functionality from the QOL to create a queue of calls. I am also doing some refactoring to re-use some of the functions in both quick-order-list.js and quick-add-bulk.js
Other considerations
I have not pulled out
updateMultipleQty
andrenderSections
since there are some differences there. I think it will make it a bit more difficult for readabilityTesting steps/scenarios
Demo links
Checklist