<?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 Re: Uncaught error using Embedder in React Portal in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uncaught-error-using-Embedder-in-React-Portal/m-p/532927#M25688</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1458297"&gt;@adminHbits&lt;/a&gt; You can find the instructions, including information on how to remove an Embedder, in &lt;A href="https://www.dropbox.com/developers/embedder" target="_blank"&gt;the Embedder documentation here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jul 2021 15:34:30 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-07-14T15:34:30Z</dc:date>
    <item>
      <title>Uncaught error using Embedder in React Portal</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uncaught-error-using-Embedder-in-React-Portal/m-p/419609#M22539</link>
      <description>&lt;P&gt;I'm attempting to use the Embedder in a React web app. The link to the embedded folder is generated dynamically so I'm using the Dropbox.embed function. I'm doing so in a React Portal using the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;import { useEffect } from 'react';
import { createPortal } from 'react-dom';

export default function DropboxPortal({ link, children }) {
    const mount = document.getElementById('dropbox-root');
    const el = document.createElement('div');

    useEffect(() =&amp;gt; {
        mount.appendChild(el);
        global.Dropbox.embed({ link }, el);

        return () =&amp;gt; {
            mount.removeChild(el);
        }
    }, [el, link, mount]);

    return createPortal(children, el);
};&lt;/PRE&gt;
&lt;P&gt;The component unmounts the created div element from above and it's children are all removed from the DOM however I'm getting this error in the console &lt;FONT color="#FF0000"&gt;Uncaught Error: iframe does not contain a contentWindow&lt;/FONT&gt; while navigating around the app after unmounting. I was wondering if there is an event listener or something that needs to be cleaned up in this scenario and how I might do so? When logging the event listeners on the window object in chrome dev tools I see that a message event listener is added by dropins.js:1.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 13:38:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uncaught-error-using-Embedder-in-React-Portal/m-p/419609#M22539</guid>
      <dc:creator>RyanW</dc:creator>
      <dc:date>2020-05-13T13:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught error using Embedder in React Portal</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uncaught-error-using-Embedder-in-React-Portal/m-p/419896#M22552</link>
      <description>&lt;P&gt;Thanks for the report! We'll look into it. We may need to add some sort of&amp;nbsp;cleanup method for this kind of use case. I'll follow up here once I have an update for you.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 17:22:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uncaught-error-using-Embedder-in-React-Portal/m-p/419896#M22552</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-13T17:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught error using Embedder in React Portal</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uncaught-error-using-Embedder-in-React-Portal/m-p/432267#M22866</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:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uncaught-error-using-Embedder-in-React-Portal/m-p/432267#M22866</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-06-24T16:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught error using Embedder in React Portal</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uncaught-error-using-Embedder-in-React-Portal/m-p/532649#M25673</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We are getting a similar error in React. Is it possible to have a source code for react to use react embed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 13:13:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uncaught-error-using-Embedder-in-React-Portal/m-p/532649#M25673</guid>
      <dc:creator>adminHbits</dc:creator>
      <dc:date>2021-07-13T13:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught error using Embedder in React Portal</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uncaught-error-using-Embedder-in-React-Portal/m-p/532927#M25688</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1458297"&gt;@adminHbits&lt;/a&gt; You can find the instructions, including information on how to remove an Embedder, in &lt;A href="https://www.dropbox.com/developers/embedder" target="_blank"&gt;the Embedder documentation here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 15:34:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uncaught-error-using-Embedder-in-React-Portal/m-p/532927#M25688</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-07-14T15:34:30Z</dc:date>
    </item>
  </channel>
</rss>

