<?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 JS error in ArcGIS JS API after remove of a VectorTileLayer with native promises turned on in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-error-in-arcgis-js-api-after-remove-of-a/m-p/77582#M7047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Test case:&lt;/P&gt;&lt;P&gt;1. Turn on native promises&lt;/P&gt;&lt;P&gt;2. Add a VectorTileLayer&lt;/P&gt;&lt;P&gt;3. Remove the VectorTileLayer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uncaught JS errors appear in the console immediately after layer removal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/479663_Screenshot from 2020-01-28 20-28-45.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Codepen:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/parshin/pen/OJPYLXm?editors=1000" title="https://codepen.io/parshin/pen/OJPYLXm?editors=1000"&gt;https://codepen.io/parshin/pen/OJPYLXm?editors=1000&lt;/A&gt;&amp;nbsp; (based on&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/layers-vectortilelayer/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/layers-vectortilelayer/index.html"&gt;VectorTileLayer | ArcGIS API for JavaScript 4.14&lt;/A&gt;, but with turned on native promises and removing of the layer after 10 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Browser: Chromium Version 79.0.3945.79&amp;nbsp;&lt;/P&gt;&lt;P&gt;OS:&amp;nbsp;Ubuntu 16.04 (64-bit)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2020 17:38:08 GMT</pubDate>
    <dc:creator>AlexanderParshin</dc:creator>
    <dc:date>2020-01-28T17:38:08Z</dc:date>
    <item>
      <title>JS error in ArcGIS JS API after remove of a VectorTileLayer with native promises turned on</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-error-in-arcgis-js-api-after-remove-of-a/m-p/77582#M7047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Test case:&lt;/P&gt;&lt;P&gt;1. Turn on native promises&lt;/P&gt;&lt;P&gt;2. Add a VectorTileLayer&lt;/P&gt;&lt;P&gt;3. Remove the VectorTileLayer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uncaught JS errors appear in the console immediately after layer removal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/479663_Screenshot from 2020-01-28 20-28-45.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Codepen:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/parshin/pen/OJPYLXm?editors=1000" title="https://codepen.io/parshin/pen/OJPYLXm?editors=1000"&gt;https://codepen.io/parshin/pen/OJPYLXm?editors=1000&lt;/A&gt;&amp;nbsp; (based on&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/layers-vectortilelayer/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/layers-vectortilelayer/index.html"&gt;VectorTileLayer | ArcGIS API for JavaScript 4.14&lt;/A&gt;, but with turned on native promises and removing of the layer after 10 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Browser: Chromium Version 79.0.3945.79&amp;nbsp;&lt;/P&gt;&lt;P&gt;OS:&amp;nbsp;Ubuntu 16.04 (64-bit)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 17:38:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-error-in-arcgis-js-api-after-remove-of-a/m-p/77582#M7047</guid>
      <dc:creator>AlexanderParshin</dc:creator>
      <dc:date>2020-01-28T17:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: JS error in ArcGIS JS API after remove of a VectorTileLayer with native promises turned on</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-error-in-arcgis-js-api-after-remove-of-a/m-p/77583#M7048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested the issue you reported and confirmed that this issue no longer exists at 4.15.&amp;nbsp;At 4.15, the native promises will be enabled by default. You can check the fix for this issue on our "next" version. I have updated your app to use the next version. You should see that the error is gone. &lt;A href="https://codepen.io/U_B_U/pen/JjoqGJa?editors=1000"&gt;Here&lt;/A&gt; is your updated app to use the "&lt;A href="https://github.com/Esri/feedback-js-api-next"&gt;next&lt;/A&gt;" version of the api.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this fixes your issue,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 22:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-error-in-arcgis-js-api-after-remove-of-a/m-p/77583#M7048</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2020-01-28T22:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: JS error in ArcGIS JS API after remove of a VectorTileLayer with native promises turned on</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-error-in-arcgis-js-api-after-remove-of-a/m-p/77584#M7049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Undral,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer, I confirm that it works well with the "next" version of the API!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2020 05:04:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-error-in-arcgis-js-api-after-remove-of-a/m-p/77584#M7049</guid>
      <dc:creator>AlexanderParshin</dc:creator>
      <dc:date>2020-01-29T05:04:02Z</dc:date>
    </item>
  </channel>
</rss>

