SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 998 forks source link

Confused between loadPropertyPaneResources and onPropertyPaneConfigurationStart #7751

Open hasannaqvi83 opened 2 years ago

hasannaqvi83 commented 2 years ago

Why are we making a call to loadLists() from "onPropertyPaneConfigurationStart" lifecycle method which fires after the property pane is opened or rendered?

There is a lifecycle method called "loadPropertyPaneResources" which provides a way to load resources needed by the property pane before the property pane is rendered and which is executed once. This way we can avoid the following check:

  if (this.lists) {
      return;
    }

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ghost commented 2 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.