<?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 occasionally failing to load in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-widget-occasionally-failing-to-load/m-p/1419852#M12466</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a custom widget which, when loading correctly, appears like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarryBonshorMayes_0-1715084220265.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103324iDC5330BAB07F479B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarryBonshorMayes_0-1715084220265.png" alt="HarryBonshorMayes_0-1715084220265.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This works 90% of the time in the experience builder, but when viewing the published experience it loads around 30% of the time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to be loading before the data and so fails and shows this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarryBonshorMayes_1-1715084271112.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103325iD5B71FCE3CE0D03F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarryBonshorMayes_1-1715084271112.png" alt="HarryBonshorMayes_1-1715084271112.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refreshing until it loads solves this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be possible to add some sort of delay at the start which would give time for other resources to load or is there another underlying issue?&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 12:20:17 GMT</pubDate>
    <dc:creator>HarryBonshor-Mayes</dc:creator>
    <dc:date>2024-05-07T12:20:17Z</dc:date>
    <item>
      <title>Custom widget occasionally failing to load</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-widget-occasionally-failing-to-load/m-p/1419852#M12466</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a custom widget which, when loading correctly, appears like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarryBonshorMayes_0-1715084220265.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103324iDC5330BAB07F479B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarryBonshorMayes_0-1715084220265.png" alt="HarryBonshorMayes_0-1715084220265.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This works 90% of the time in the experience builder, but when viewing the published experience it loads around 30% of the time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to be loading before the data and so fails and shows this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarryBonshorMayes_1-1715084271112.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103325iD5B71FCE3CE0D03F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarryBonshorMayes_1-1715084271112.png" alt="HarryBonshorMayes_1-1715084271112.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refreshing until it loads solves this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be possible to add some sort of delay at the start which would give time for other resources to load or is there another underlying issue?&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 12:20:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-widget-occasionally-failing-to-load/m-p/1419852#M12466</guid>
      <dc:creator>HarryBonshor-Mayes</dc:creator>
      <dc:date>2024-05-07T12:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom widget occasionally failing to load</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-widget-occasionally-failing-to-load/m-p/1419869#M12470</link>
      <description>&lt;P&gt;You can use a setTimeout() function if you just want to add a delay, but you will get better results finding out why your widget isn't loading.&lt;/P&gt;&lt;P&gt;Do you have any console errors? Chances are the issue relates to jimuMapView or a map layer loading slower than your widget. Consider using a useEffect() function and/or reactiveUtils to watch for the data.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 13:11:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-widget-occasionally-failing-to-load/m-p/1419869#M12470</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-05-07T13:11:14Z</dc:date>
    </item>
  </channel>
</rss>

