You need to sign in to do that
Don't have an account?
Kristian Kauper 1
LWC component works on Contact but not on Opportunity
We have created an LWC component for use on Contact and Opportunity pages. In testing, the component works fine on those two pages, but a couple of customers have reported that the component installs fine on their Contact page, but not on their Opportunity page.
In the case of the Opportunity page, our component appears in the list of components, and they can drag it on to the page, but then a loader appears and the process never completes.
This has happened to at least two customers, so this does not appear to be an isolated issue.
Does anyone know what could cause this?
In the case of the Opportunity page, our component appears in the list of components, and they can drag it on to the page, but then a loader appears and the process never completes.
This has happened to at least two customers, so this does not appear to be an isolated issue.
Does anyone know what could cause this?
Ah, I guess I didn't understand that the component is actually initialized/rendered during the process of adding it to the page. I thought it was just a dummy image to represent the component until the page had been saved and an Opportunity page viewed. So, it's actually the component's loader which never completes.
I won't paste all of the javascript, because it's too large and probably not pertinent. Can you see any issues with this initialization logic?