<?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 esri.views.LayerViewFactory: Failed to create view for layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-views-layerviewfactory-failed-to-create-view/m-p/744217#M68843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In our SPA, we are seeing errors logged from the view-layer-factory when users navigate away from the map view before it finishes loading. We did some digging, and it looks like the Dojo loader for that component is not cancelling the promise correctly. I can see that the call to &lt;SPAN style="text-decoration: underline;"&gt;disposeLayerView&lt;/SPAN&gt; is calling &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;Promise.cancel&lt;/SPAN&gt;, and I can see some of the downstream promises are also calling cancel; however it looks like at some point in the Promise chain, that cancel is not handled/checked for, and so it flips to a reject which gives us the call to &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;logger.error&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the very least, I think this makes sense to&amp;nbsp;downgrade to a warn/info since it is expected. Would it be possible to get a fix out for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2020 01:18:03 GMT</pubDate>
    <dc:creator>ChrisGuirguis</dc:creator>
    <dc:date>2020-05-27T01:18:03Z</dc:date>
    <item>
      <title>esri.views.LayerViewFactory: Failed to create view for layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-views-layerviewfactory-failed-to-create-view/m-p/744217#M68843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In our SPA, we are seeing errors logged from the view-layer-factory when users navigate away from the map view before it finishes loading. We did some digging, and it looks like the Dojo loader for that component is not cancelling the promise correctly. I can see that the call to &lt;SPAN style="text-decoration: underline;"&gt;disposeLayerView&lt;/SPAN&gt; is calling &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;Promise.cancel&lt;/SPAN&gt;, and I can see some of the downstream promises are also calling cancel; however it looks like at some point in the Promise chain, that cancel is not handled/checked for, and so it flips to a reject which gives us the call to &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;logger.error&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the very least, I think this makes sense to&amp;nbsp;downgrade to a warn/info since it is expected. Would it be possible to get a fix out for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 01:18:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-views-layerviewfactory-failed-to-create-view/m-p/744217#M68843</guid>
      <dc:creator>ChrisGuirguis</dc:creator>
      <dc:date>2020-05-27T01:18:03Z</dc:date>
    </item>
  </channel>
</rss>

