Intercept property pane field changes on dynamaically loaded webparts

Copper Contributor

I have a SharePoint SPFx webpart and I am trying to load and render OOB webparts dynamically from within my webpart. I am looking at this example: https://www.techmikael.com/2018/06/dynamically-load-web-part-from-another.html

I successfully loaded webparts like this, propertyPane is opened by default and I can configure the webparts. The problem is that I cannot find a way to intercept an event when properties are changed, in order to store the custom configuration.

Is there a way to intercept property pane field changes on a dynamically loaded webpart? Could I register an event somehow?

0 Replies