Open in gallery
This sample is best viewed in the interactive gallery. Open now · Stay on this page

Event Aggregator Sample (DEPRECATED)

Event Aggregator Sample (DEPRECATED)

This sample shows how we can use the SPFx Event Aggregator to communicate between web parts through broadcasting events utilizing the Publish–subscribe pattern. It enables a web part or component to raise event (broadcast message) through the SPFx event aggregator and that event is received by other web parts or components that have been subscribed to receive it.

Open this sample in the gallery (popup panel): Open in gallery

Source: https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-events-aggregator