SPFx web part does not render the React content after clearLoadingIndicator was called #7910
-
|
Hi everybody, i'm using the 1.14.0 version of SharePoint Framework and I want to show the loading indicator. As reported in the tutorials and documentations, I'm using this.context.statusRenderer.displayLoadingIndicator(this.domElement, strings.LoadingViewsText);to show the indicator, and this.context.statusRenderer.clearLoadingIndicator(this.domElement);
this.render();to hide it. The problem is that when I remove the indicator, the React component wasn't redendered. Searching on internet, I found the #6854 issue that state that there is a problem but that it was fixed with the 1.14.0 release. Where am i wrong and how I can solve my problem? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hi @SamueleFurnari, |
Beta Was this translation helpful? Give feedback.
-
|
Thanks a lot!!! |
Beta Was this translation helpful? Give feedback.
Hi @SamueleFurnari,
As described in the issue you've mentioned - you need to provide your own
clearDomElementCallbackwhen callingdisplayLoadingIndicatorto make it work.