<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Embedder embed function unmount after target element was unmounted in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Embedder-embed-function-unmount-after-target-element-was/m-p/422312#M22641</link>
    <description>&lt;P&gt;Hey community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm currently implementing the Embedder folowing along with the &lt;A href="https://www.dropbox.com/developers/embedder" target="_self"&gt;documentation&lt;/A&gt;. We decided to implement it with the "using JavaScript" method. It's working really fine as the example describes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dropbox.embed({link:"https://www.dropbox.com/sh/keptcjl08q3wsid/AACui966iXcXPbagCJ2py2L-a?dl=0"}, element&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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&amp;nbsp;&lt;STRONG&gt;element&lt;/STRONG&gt; which we called in the embed function as well), we start receiving a lot of warnings in console and it doesn't stops:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Uncaught Error: iframe does not contain a contentWindow
at dropins.js:1
at n (dropins.js:1)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2020 09:22:53 GMT</pubDate>
    <dc:creator>rodrigo-sheetgo</dc:creator>
    <dc:date>2020-05-21T09:22:53Z</dc:date>
    <item>
      <title>Embedder embed function unmount after target element was unmounted</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Embedder-embed-function-unmount-after-target-element-was/m-p/422312#M22641</link>
      <description>&lt;P&gt;Hey community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm currently implementing the Embedder folowing along with the &lt;A href="https://www.dropbox.com/developers/embedder" target="_self"&gt;documentation&lt;/A&gt;. We decided to implement it with the "using JavaScript" method. It's working really fine as the example describes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dropbox.embed({link:"https://www.dropbox.com/sh/keptcjl08q3wsid/AACui966iXcXPbagCJ2py2L-a?dl=0"}, element&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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&amp;nbsp;&lt;STRONG&gt;element&lt;/STRONG&gt; which we called in the embed function as well), we start receiving a lot of warnings in console and it doesn't stops:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Uncaught Error: iframe does not contain a contentWindow
at dropins.js:1
at n (dropins.js:1)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 09:22:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Embedder-embed-function-unmount-after-target-element-was/m-p/422312#M22641</guid>
      <dc:creator>rodrigo-sheetgo</dc:creator>
      <dc:date>2020-05-21T09:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Embedder embed function unmount after target element was unmounted</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Embedder-embed-function-unmount-after-target-element-was/m-p/422313#M22642</link>
      <description>&lt;P&gt;Thanks for the report! We're aware of this issue and are looking into how to solve it. (We may offer a new method for cleaning up the Embedder after unmounting, or possibly handle this automatically, if possible.) I'll follow up here once I have an update on this.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 17:52:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Embedder-embed-function-unmount-after-target-element-was/m-p/422313#M22642</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-20T17:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Embedder embed function unmount after target element was unmounted</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Embedder-embed-function-unmount-after-target-element-was/m-p/422324#M22643</link>
      <description>&lt;P&gt;Hey Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cool! Happy to hear that you are already working on this! I'm looking forward to a solution and I'll keep the eyes here on the thread. Would be happy to be informed as soon as it is solved. Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 18:18:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Embedder-embed-function-unmount-after-target-element-was/m-p/422324#M22643</guid>
      <dc:creator>rodrigo-sheetgo</dc:creator>
      <dc:date>2020-05-20T18:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Embedder embed function unmount after target element was unmounted</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Embedder-embed-function-unmount-after-target-element-was/m-p/432268#M22867</link>
      <description>&lt;P&gt;We've added functionality for removing the Embedder. You can find information on this under the "Removing the Embedder" section in the documentation:&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/embedder" target="_self"&gt;https://www.dropbox.com/developers/embedder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 16:18:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Embedder-embed-function-unmount-after-target-element-was/m-p/432268#M22867</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-06-24T16:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Embedder embed function unmount after target element was unmounted</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Embedder-embed-function-unmount-after-target-element-was/m-p/433370#M22906</link>
      <description>&lt;P&gt;Thanks, Greg for letting me know. It worked like a charm.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 18:21:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Embedder-embed-function-unmount-after-target-element-was/m-p/433370#M22906</guid>
      <dc:creator>rodrigo-sheetgo</dc:creator>
      <dc:date>2020-06-29T18:21:12Z</dc:date>
    </item>
  </channel>
</rss>

