<?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: Legend Flickering with Svelte in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1537360#M85655</link>
    <description>&lt;P&gt;I see, thanks! I found the bug does not affect Safari. But does appear when using chrome on my Mac&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 15:16:03 GMT</pubDate>
    <dc:creator>Grant_DeCoux</dc:creator>
    <dc:date>2024-09-11T15:16:03Z</dc:date>
    <item>
      <title>Legend Flickering with Svelte</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1507126#M85066</link>
      <description>&lt;P&gt;I'm using sveltekit and arcgis js api v4.30. The legend is flickering whenever a new layer is added (see gif below). This wasn't an issue in v4.28.&lt;/P&gt;&lt;P&gt;Any ideas on how to fix this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CalebSchwind_0-1721336300656.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/110075iBFB5C21AC8A4E8DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CalebSchwind_0-1721336300656.gif" alt="CalebSchwind_0-1721336300656.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a repository with an example of the issue.&lt;/P&gt;&lt;P&gt;To test: clone that repo, run "npm install", run "npm run dev", open &lt;A href="http://localhost:5173/" target="_blank"&gt;http://localhost:5173/&lt;/A&gt;&amp;nbsp;in your browser, click the "Add Layer" button several times to see the flicker.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/cschwinderg/svelte-legend-flicker" target="_blank"&gt;https://github.com/cschwinderg/svelte-legend-flicker&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 21:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1507126#M85066</guid>
      <dc:creator>CalebSchwind</dc:creator>
      <dc:date>2024-07-18T21:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Flickering with Svelte</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1507138#M85067</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22093"&gt;@CalebSchwind&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for posting.&amp;nbsp; I'm a SvelteKit fan too&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;.&amp;nbsp; I'm not sure what's going on here.&amp;nbsp; I noticed you were using a lot of async dynamic imports so my first thought was one of those might be holding things up but I doubt that's it after thinking more about it.&amp;nbsp; I wasn't able to repro in a vanilla JS codepen.&amp;nbsp;&amp;nbsp;&lt;A href="https://codepen.io/sagewall/pen/BagjEvV" target="_blank"&gt;https://codepen.io/sagewall/pen/BagjEvV&lt;/A&gt;&amp;nbsp; There is a little shimmy as the first layer populates but the whole thing doesn't flicker like happens in SvelteKit.&amp;nbsp; I'll try and look at it closer and clone your repo tomorrow.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 22:53:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1507138#M85067</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-07-18T22:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Flickering with Svelte</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1507294#M85069</link>
      <description>&lt;P&gt;Thank you for looking into this. I have a react app that I updated to 4.30 and it doesn't have the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 14:11:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1507294#M85069</guid>
      <dc:creator>CalebSchwind</dc:creator>
      <dc:date>2024-07-19T14:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Flickering with Svelte</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1507352#M85070</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22093"&gt;@CalebSchwind&lt;/a&gt;&amp;nbsp;, Good to know about the react app.&amp;nbsp; So far I've been able to repro in SvelteKit, Svelte, Vite TS and even using ESM modules via CDN.&amp;nbsp; I've also noticed, without any serious testing, this may only affect PCs.&amp;nbsp; When I tried opening up this ESM codepen I didn't see the flickering on a BrowserStack mac but do on my PC laptop.&amp;nbsp; It's really strange but I've created an issue and we'll continue debugging.&amp;nbsp; I don't think there will be anything you'll be able to do app side to prevent this.&amp;nbsp; I'd be interested to find out if you or other's see the flickering in this ESM codepen.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/rNEeOKK" target="_blank"&gt;https://codepen.io/sagewall/pen/rNEeOKK&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It looks like the whole legend is being re-rendered when a layer is added.&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6358549485112w664h540r641" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6358549485112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6358549485112w664h540r641');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6358549485112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My personal observations are I see the flickering when using the ESM modules on PC (npm and cdn) but not when I use the AMD modules.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/RwzaPMY" target="_blank"&gt;https://codepen.io/sagewall/pen/RwzaPMY&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 16:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1507352#M85070</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-07-19T16:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Flickering with Svelte</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1507403#M85071</link>
      <description>&lt;P&gt;I see the flickering in the first codepen (ESM), but not in the second codepen (AMD modules).&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 18:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1507403#M85071</guid>
      <dc:creator>CalebSchwind</dc:creator>
      <dc:date>2024-07-19T18:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Flickering with Svelte</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1537059#M85649</link>
      <description>&lt;P&gt;Hello, this is blocking me from updating to the latest js api version. Will this be fixed in 4.31?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 19:43:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1537059#M85649</guid>
      <dc:creator>Grant_DeCoux</dc:creator>
      <dc:date>2024-09-10T19:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Flickering with Svelte</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1537119#M85651</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/754059"&gt;@Grant_DeCoux&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Unfortunately it's not likely to make the 4.31 release.&amp;nbsp; We have had to prioritize other issues. Currently it's tagged for 4.32.&amp;nbsp; This is a strange bug and only seems to affect ESM builds on PCs. The macs we've tested with seem unaffected, but we need to do more testing and debugging.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 22:01:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1537119#M85651</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-09-10T22:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Flickering with Svelte</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1537360#M85655</link>
      <description>&lt;P&gt;I see, thanks! I found the bug does not affect Safari. But does appear when using chrome on my Mac&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 15:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1537360#M85655</guid>
      <dc:creator>Grant_DeCoux</dc:creator>
      <dc:date>2024-09-11T15:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Flickering with Svelte</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1547988#M85871</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22093"&gt;@CalebSchwind&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/754059"&gt;@Grant_DeCoux&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This was fixed and will be part of the 4.31 release &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 13:43:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1547988#M85871</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-10-11T13:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Flickering with Svelte</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1547993#M85872</link>
      <description>&lt;P&gt;Awesome! Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 13:48:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-flickering-with-svelte/m-p/1547993#M85872</guid>
      <dc:creator>CalebSchwind</dc:creator>
      <dc:date>2024-10-11T13:48:07Z</dc:date>
    </item>
  </channel>
</rss>

