forked from trailheadapps/lwc-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a note about pub/sub limitations (trailheadapps#448)
Added a note about pub/sub limitations (no Community support)
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
** Looking for the `c/pubsub` component? ** | ||
**Looking for the `c/pubsub` component?** | ||
|
||
As of the Summer '20 major release, the [Lightning message service][2] (LMS) is now Generally Available (GA). | ||
|
||
LMS is a client-side cross-DOM pub/sub eventing mechanism built and supported by Salesforce. It supersedes the open-source non-supported `c/pubsub` component that was made available early in the release of Lightning web components as a temporary hold over for the lack of features analogous to `<aura:event>` at the time. | ||
|
||
With LMS being now GA, we've retired all use of `c/pubsub` in any sample apps and removed its core code as well. However, if you're looking for it, you may find it in its archived [home][1]. | ||
|
||
Note that [some limitations](3) apply to the use of LMS. In particular, as of Spring '21, LMS does not support Communities so you'll have to revert to pub/sub in this case. | ||
|
||
[1]: https://github.com/developerforce/pubsub | ||
[2]: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_message_channel | ||
[3]: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_message_channel_considerations |