QuestionQ33

VerifiedBasic Lightning Web Component Development

Which two methods should a developer use in a Lightning web component to correctly manage the subscription lifecycle of a Message Channel?

Choose two
Explanation

Lightning Message Service uses subscribe() to subscribe a Lightning web component to a message channel and unsubscribe() to stop receiving messages using the subscription reference.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!