Forum Discussion

Olivier3232's avatar
Olivier3232
Copper Contributor
Apr 20, 2020

SPFx Extension BaseListViewCommandSet - Unable to refresh page

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.

 

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

Any Idea ?

 

Olivier,

No RepliesBe the first to reply

Resources