0

how can we communicate across the two components? Do we have an application event in the lWc framework?

1
  • You can use publish/subscribe approach – pincet Apr 8 at 10:30
5

Salesforce introduces Lightning Messaging Service, which allows communication across Aura, Visualforce, LWC. It's a perfect substitution for Application events and it can be used to communicate between different LWC components.

link to documentation about LMS - https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_message_channel link to component that you'll use in LWC - https://developer.salesforce.com/docs/component-library/bundle/lightning-message-service/documentation

Not the answer you're looking for? Browse other questions tagged or ask your own question.