SPFx Extension BaseListViewCommandSet - Unable to refresh page

Copper Contributor

I created a SPFx BaseListViewCommandSet extension. My component puts the status of all selected rows. The update works well.

However, when I want to refresh the page (location.reload ();) at the end of the OnExecute method, the page does not refresh.

In debug mode, the page refreshes, in package deployed mode, the page does not refresh.


  public onExecute(event: IListViewCommandSetExecuteEventParameters): void {
  //code ...  location.reload ();

Any Idea ?



0 Replies