Newer Version Available
Considerations and Limitations
Keep the following in mind when working with the lightning:messageChannel component.
Lightning Message Service publishes messages to any subscribed component until the destroy phase of the component's lifecycle, even if the component isn't visible. Sometimes when you navigate away from a Lightning page, components are cached and not destroyed. These components still receive messages published on the Lightning Message Service. For more information, read about the Lightning component lifecycle and related system events.
- Limitations
- Do not include a Lightning message channel in a package that you plan to install into production orgs. The installation will fail.
- The Lightning Message Service API doesn’t support the following experiences during Developer Preview:
- Salesforce mobile app
- Lightning Out