Skip to main content
Participant
March 7, 2023

CCEverywhere.terminate() is causing onCancel() to be called infinitely

  • March 7, 2023
  • 1 reply
  • 3521 views

Hi, I need to terminate the CCEverywhere instance whenever I close the popover. So, I've put 

CCEverywhere.terminate() in both the onCancel() and onPublish() callbacks of createDesignCallback. 
For onPublish(), it works fine. But for onCancel(), it gets stuck in a loop making the whole page unresponsive. Without terminate(), it closes fine but if I try to reopen it I get the error that SDK is already initialized.

Please help here.

1 reply

Participant
March 7, 2023

UPDATE: The same is happening for onPublish() method as well.