Skip to main content
New Voice
August 27, 2024
Question

Bundle.js How can I cleanup the listeners added to the signing events?

  • August 27, 2024
  • 2 replies
  • 187 views

Hey there, currently I’m integrating the bundle.js to my application to sign an agreement. I’m using a dialog to present this document, this dialog can be closed or opened, I was looking for a way to clean the event listeners of the signing but I can’t find any information about it. 

 

I’m using React, there’s any way to remove the listeners associated when unmount the docusign embed document?

2 replies

Hengfeng Ge
Hero
Hero
August 31, 2024

Hi @seven-avalon ,

Our customer meet this issue before, the signing is global variable in this page. then the listener is add  under this variable.

and you can find the off function is empty, so the event is not removed.

 

we create with support team and this is the reply from support team:

You shouldn't re-use the DocuSign focused view instance, you should create a new instance for each time you require, this ensures the instance events are isolated. Changing this implementation would resolve your issue,

 

FreeLink/甫连信息
🌍 DocuSign Partner | Partner Profile
🏆 2024 APAC Reseller Growth Partner of the Year
🔧 First globally to pass DocuSign eSignature Technical Consultant certification
🚀 Expertise in DocuSign integrations with in-house systems for leading enterprises across various industries.

Feel free to reach out for collaboration opportunities.

Welcome to the DocuSign Community! Your feedback is highly valued. If you find my response helpful, please give it a "Like" and consider marking it as the "Best Answer" to assist others with similar issues.
Newcomer
February 14, 2025

Do you have an example of how to “create a new instance for each time you require”?

As far as I can tell, we aren’t reusing anything variables/instances and I still see the events firing multiple times if I reload the signing.