cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
417
Views
0
Helpful
2
Replies

Webex desktop loading of custom widgets

I have developed a custom widget which I load on the Webex desktop. While the desktop loads I have seen that the component is added to the DOM twice and removed once, so on the resulting document it only appears once but it was actually mounted twice. My component implements logic when mounted, so it would be very helpful to understand how the page is loaded so that my component's initial logic is not triggered twice. Or perhaps I need to use another lifecycle event than mounted? Thanks!

2 Replies 2

Janos Benyovszki
Cisco Employee
Cisco Employee

@alejandra-moreno there is a good Blog post about using custom Contact Center widgets and the JS SDK here https://developer.webex.com/blog/leveraging-the-webex-contact-center-agent-desktop-sdk-in-your-custom-widgets , it might help you with implementation.

Hi Janos,

Many thanks for your reply. I don't use the JS SDK as I don't need any agent data. What I search is to understand how does the desktop loads custom widgets on the page.