You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the PCF component is a REACT component, and the destroy method calls unmount, when navigating away, e.g. through a link in the component, REACT will throw errors in the console.
This is most likely related to attempting to call destroy in the wrong context.
The text was updated successfully, but these errors were encountered:
Giving it some thought, this is most likely caused by CRM keeping a reference to the original PCF class, and trying to unmount it after, but the app is previously unmounted.
Additionally, this would explain why the original version is loaded when hitting the refresh button on home view.
The current structure also leads to errors when multiple PCFs are on the same form or page.
Since we store context in a global variable, we won't load the PCFs correctly
If the PCF component is a REACT component, and the
destroy
method calls unmount, when navigating away, e.g. through a link in the component, REACT will throw errors in the console.This is most likely related to attempting to call
destroy
in the wrong context.The text was updated successfully, but these errors were encountered: