ExamGecko
Question list
Search
Search

List of questions

Search

Question 204 - Certified B2B Commerce Administrator discussion

Report
Export

Which category can receive signaling from a Lightning Message Channel? 03m 42s

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

Explanation:

The Lightning Message Service (LMS) allows communication across different UI technologies on a Lightning page, such as Lightning Web Components, Aura Components, and Visualforce pages. LMS uses message channels to publish and subscribe to messages.A message channel is a custom metadata type that defines the shape and scope of the messages1. The scope of a message channel determines which components can receive signaling from it.There are two possible scopes: application and component1.The application scope means that any component on the page can receive signaling from the message channel, regardless of its position in the DOM hierarchy1.The component scope means that only components that share a common ancestor can receive signaling from the message channel1. Therefore, the correct answer is B. page (anywhere on it), because it corresponds to the application scope of a message channel.Reference:Use Lightning Message Service

asked 23/09/2024
luis coco enriquez
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first