Commit a7246a7
committed
fix(shop): open cart drawer instantly on add-to-cart click
Drawer was waiting for the server round-trip (onSuccess) before
opening — noticeable delay. Now opens immediately on click; onMutate
bumps the badge in the same frame, and onSuccess populates the new
line item when the server responds.1 parent d5b1b4d commit a7246a7
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
| 337 | + | |
| 338 | + | |
341 | 339 | | |
342 | 340 | | |
343 | 341 | | |
| |||
0 commit comments