Getting "Maximum call stack size exceeded" with two WebViewer

When I run a document viewer individually, there is no issue, but when I try to run two document viewers simultaneously, I get a ‘Maximum call stack size exceeded’ error. I would greatly appreciate your help. Below, I am sharing the code block. The error occurs when I try to use this component twice on the same page.

1 Like

I’ve same issue, any update?

1 Like

Hi there,

Thank you for contacting WebViewer forums,

Generally we do not recommend re-instantiating WebViewer instance multiple times, as you would need to completely dispose of it before creating a new one. We recommend you to re-use the same instance and load the document:

If you need to load 2 documents at once, you can use our multi-viewer mode, as shown in this guide:

You can also use our multi-tab mode:

Best regards,
Kevin Kim

1 Like