ExamGecko
Question list
Search
Search

List of questions

Search

Question 220 - Certified B2B Commerce Administrator discussion

Report
Export

How can a developer establish communication between components that are not in the same (Document Object Model) tree?

A.
Use publish-subscribe pattern.
Answers
A.
Use publish-subscribe pattern.
B.
Configure targets property.
Answers
B.
Configure targets property.
C.
Use dispatch events.
Answers
C.
Use dispatch events.
D.
Use @api decorators.
Answers
D.
Use @api decorators.
Suggested answer: A

Explanation:

To establish communication between components that are not in the same DOM tree, the developer should use the publish-subscribe pattern. This pattern allows components to communicate across the DOM tree without depending on their position in the hierarchy. The developer can use the Lightning Message Service (LMS) to implement this pattern, which provides a standard and secure way to exchange messages across different components and namespaces.Reference:

Communicate Across the DOM

Lightning Message Service Basics

asked 23/09/2024
Kevin Brigitta
27 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first