Skip to content

Commit

Permalink
Added a note about pub/sub limitations (trailheadapps#448)
Browse files Browse the repository at this point in the history
Added a note about pub/sub limitations (no Community support)
  • Loading branch information
pozil committed Jan 20, 2021
1 parent 987e6d8 commit 4a1a98d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion force-app/main/default/lwc/pubsub/README.md
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

0 comments on commit 4a1a98d

Please sign in to comment.