-
Notifications
You must be signed in to change notification settings - Fork 116
Closed
Labels
Milestone
Description
Expected Behavior
Whenever I load a page eg. homepage I expect to load the cart once in the CartSidebar component in an asynchronous way.
Actual Behavior
If I visit any page cart is loaded multiple times (at least two times), possibly in onSSR method which blocks rendering.
Possible Solution
Find all places where cart is loaded, get rid of them and make sure that loading is executed only in the CartSidebar component.
Steps to reproduce
The easiest way would be to debug in IDE or add a console log in useCart.load() composable method and observe how many times cart load is executed.
What version of Magento 2 integration are you using?
2.4.x
What version of Node.js are you using?
16.13.1
What browser (and version) are you using?
Version 96.0.4664.110 (Official Build) (arm64)
What operating system (and version) are you using?
macOS Monterey 12.1
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct