List of questions
Related questions
Question 156 - Certified B2B Commerce Developer discussion
A developer has created a custom Lightning web component for the Cart page that needs to react to changes to cart items from the standard cart component.
How should the developer implement the custom component so changes to cart items and quantities are reflected?
A.
Subscribe to events on the lightning_commerce_cartChanged channel using the Lightning Message Service.
B.
Add a listener for the cartltemUpdate Lightning event.
C.
Listen for events on the lightning_commerce_cartChanged channel with the Lightning Event ''Listener component.
D.
Add an event listener for the cartchanged DOM (Document Object Model) event.
Your answer:
0 comments
Sorted by
Leave a comment first