Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp component base.dynamicdataprovider.registersourcechanged

John Nguyen edited this page Apr 22, 2021 · 2 revisions

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

Clone this wiki locally