-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed #901 #1230
Fixed #901 #1230
Conversation
Fixed magento#901 Cart flashes/reloads twice when last cart item is removed.
This pull request is automatically deployed with Now. Latest deployment for this branch: https://venia-git-fork-pradeep-cedcoss-pradeep-pwa-901-new.magento-research1.now.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change functions perfectly, just have some minor suggestions for readability.
Addressed my own feedback, re-assigning review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me and works fine.
The only thing I can think of is last time we did something like this we were worried about the cart being updated from a separate tab and we purposefully wanted to refresh so that we could get that update.
After thinking it through I don't think that applies here. Let me know if you think otherwise.
@tjwiebell @supernova-at I remove last item from cart > Close right panel> click back on cart icon. First empty cart is shown then reload then back to empty cart. Should it be just reload and then show empty cart? |
The initial render, then loading indicator, then re-render seems like a regression to me, I'll look into it. |
@supernova-at QA Pass, Please review latest commit and merge. |
Fixed #901 Cart flashes/reloads twice when last cart item is removed.
Description:
Add product to cart and click on Remove Item link > Cart flashes (Shows "There are no item in your cart" now displays Loading spinner and back to ""There are no item in your cart"" )
Steps to reproduce the behavior:
Go to Venia storefront and add a product to cart.
Now click on Remove Item option present under more options (3 vertical dots).
Expected behavior:
Shopping Cart right drawer should be displayed with "There are no items in your shopping cart" message with Continue shopping button.
Actual:
Shopping Cart right drawer displays message then shows loading icon and displays message. This behavior needs to be changed.
Checklist: