I am having an issue at one of our projects. We have a custom PCF shown on a form for a custom table in a model driven app. In certain cases, we open the form using Xrm.Navigation.navigateTo in a dialog using javascript. Sometimes when the form opens, the entire form goes blank. We can reproduce it when we clear the browser's cache. No useful errors are shown in browser's console. I tried removing all logic from my PCF and just deploying a component that shows some text but I still get the same behavior. The issue never happens when the form is opened in a new window instead of a dialog. I am not 100% sure but I suspect the issue started when the new look for model driven apps has been released.
I attached 2 images to give you an idea what I mean with blank form. 1 is normal, 1 has the issue.
I have a ticket open at Microsoft but it is still under investigation. They suspect the issue to be in the PCF but I don't fully agree with this.
Managed to find the issue. My PCF was on older version of platform libraries React and Fluent. I upgraded from React 16.8.6 to 16.14.0 and from Fluent 8.29.0 to 9.46.2. My guess is the real issue was Fluent and how the platform library is loaded in certain scenario's. Also had to migrate from Fluent v8 to v9 because they are not backwards compatible but atleast my issue is fixed.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.