ExamGecko
Question list
Search
Search

Question 10 - Certified B2B Commerce Developer discussion

Report
Export

Which category can receive signaling from a Lightning Message Channel?

A.
only descendents (i.e. children)
Answers
A.
only descendents (i.e. children)
B.
only direct siblings
Answers
B.
only direct siblings
C.
page (anywhere on it)
Answers
C.
page (anywhere on it)
D.
only ancestors (i.e. parents)
Answers
D.
only ancestors (i.e. parents)
Suggested answer: C

Explanation:

A Lightning Message Channel can receive signaling from any component on a page (anywhere on it). A Lightning Message Channel is a service that allows components to communicate with each other across different Salesforce UI technologies, such as Aura, LWC, Visualforce, and Lightning web apps. A component can subscribe to a message channel and receive events that are published by another component on the same or different page. The message channel acts as a mediator that delivers the events to the subscribers. A Lightning Message Channel does not receive signaling only from descendants (i.e., children), only from direct siblings, or only from ancestors (i.e., parents), as these are limitations of event-based communication. Salesforce

Reference: [Lightning Web Components Developer Guide: Communicate Across Salesforce UI Technologies], [Lightning Web Components Developer Guide: Communicate with Events]

asked 23/09/2024
Brandon Garner
27 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first