<?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 custom widget in create-react-app not seeing view changes in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-widget-in-create-react-app-not-seeing-view/m-p/1027036#M71779</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have a create-react-app application into which I've added the &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-custom-recenter/" target="_self"&gt;Recenter demo widget&lt;/A&gt;&amp;nbsp; (with minor changes to use ESM).&amp;nbsp; The widget loads but doesn't seem to get notified of changes in view after loading.&amp;nbsp; I'm wondering if this is because the widget, along w/ the rest of the ArcGIS JSAPI code, is loading in a useEffect hook.&amp;nbsp; If this is indeed the problem, can someone suggest a work around?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;--john&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 01:56:10 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-02-16T01:56:10Z</dc:date>
    <item>
      <title>custom widget in create-react-app not seeing view changes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-widget-in-create-react-app-not-seeing-view/m-p/1027036#M71779</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have a create-react-app application into which I've added the &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-custom-recenter/" target="_self"&gt;Recenter demo widget&lt;/A&gt;&amp;nbsp; (with minor changes to use ESM).&amp;nbsp; The widget loads but doesn't seem to get notified of changes in view after loading.&amp;nbsp; I'm wondering if this is because the widget, along w/ the rest of the ArcGIS JSAPI code, is loading in a useEffect hook.&amp;nbsp; If this is indeed the problem, can someone suggest a work around?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;--john&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 01:56:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-widget-in-create-react-app-not-seeing-view/m-p/1027036#M71779</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-16T01:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: custom widget in create-react-app not seeing view changes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-widget-in-create-react-app-not-seeing-view/m-p/1101949#M74798</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Any luck?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Sep 2021 14:54:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-widget-in-create-react-app-not-seeing-view/m-p/1101949#M74798</guid>
      <dc:creator>Ranga_Tolapi</dc:creator>
      <dc:date>2021-09-26T14:54:58Z</dc:date>
    </item>
  </channel>
</rss>

