Hey community,
I'm currently implementing the Embedder folowing along with the documentation. We decided to implement it with the "using JavaScript" method. It's working really fine as the example describes:
Dropbox.embed({link:"https://www.dropbox.com/sh/keptcjl08q3wsid/AACui966iXcXPbagCJ2py2L-a?dl=0"}, element
But unfortunately as we are using a JS Library for our app, as soon as the component which calls the embed function gets unmounted (and along with it the element which we called in the embed function as well), we start receiving a lot of warnings in console and it doesn't stops:
Uncaught Error: iframe does not contain a contentWindow
at dropins.js:1
at n (dropins.js:1)
So my question is, and what I've already tried, is to have a function which I could maybe call after my component gets unmounted to fire to embed to stop trying watching this element. Is there something like this already? I tried some methods of the Object like unmount and I don't have any success until now.
Thanks!