Forum Discussion
aderanths
Jan 08, 2024Copper Contributor
Issue with SPFx part and OOTB Parts in WebView mode
I've discovered that recently, there appears to be a break introduced when viewing SharePoint modern pages with the parameter of env set to WebView(case-sensitive), e.g /SitesPages/Home.aspx?env=WebV...
JoeBlueml
Jul 18, 2024Copper Contributor
I have the same issue and figured out, that this only happens, if I perform a MS Graph-call consuming the MSGraphClientFactory (in my case).
Apparently - when the "env"-parameter "WebView" is present - the promise of each MS Graph-call never gets resolved...
If you "await" the Graph-call, WebPart execution will break at this point. If you do not "await" the Graph-call and use .then and .catch instead, neither of them will be called...
Don't know, how to overcome this...
Apparently - when the "env"-parameter "WebView" is present - the promise of each MS Graph-call never gets resolved...
If you "await" the Graph-call, WebPart execution will break at this point. If you do not "await" the Graph-call and use .then and .catch instead, neither of them will be called...
Don't know, how to overcome this...