sp component base.dynamicdataprovider.registersourcechanged - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki

Home > @microsoft/sp-component-base > DynamicDataProvider > registerSourceChanged

DynamicDataProvider.registerSourceChanged() method

Registers a callback for updates when a Dynamic Data source is changed. This happens when any property is updated within the source.

Signature:

registerSourceChanged(sourceId: string, callback: () => void): void;

Parameters

Parameter Type Description
sourceId string Id of the Dynamic Data Source.
callback () => void Function to execute when the source updates its data.

Returns:

void

⚠️ **GitHub.com Fallback** ⚠️