<?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 Delayed loading of some Calcite web components in Custom Widget (version 4.34) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delayed-loading-of-some-calcite-web-components-in/m-p/1696342#M88359</link>
    <description>&lt;P&gt;I use&amp;nbsp;calcite-flow in a custom widget and want to upgrade from 4.30 to version 4.34&lt;/P&gt;&lt;P&gt;In the past I had to load some&amp;nbsp;Calcite components&amp;nbsp;(like calcite-flow) with "componentsUtils.loadCalciteComponents" to a path like:&lt;/P&gt;&lt;P&gt;"flow: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-flow'], a))"&amp;nbsp;&lt;/P&gt;&lt;P&gt;See my post here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/calcite-design-system-questions/calcite-elements-in-custom-widget-but-shadow-dom/td-p/1547506" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/calcite-design-system-questions/calcite-elements-in-custom-widget-but-shadow-dom/td-p/1547506&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From CoPilot:&lt;/P&gt;&lt;P&gt;"Some components (like calcite-button) are eagerly registered because they’re used in core widgets, while others (like calcite-flow) only get registered when a widget that depends on them (e.g. Popup) is instantiated."&lt;/P&gt;&lt;P&gt;I can confirm that if I open a popup on the map before using my Widget, everything works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently the naming convention for the chunks is "indexed", while the index increment change between ArcGIS JavaScript Maps SDK version and i assume incremental releases as well.:&lt;/P&gt;&lt;P&gt;"flow: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/index19'], a)),"&lt;/P&gt;&lt;P&gt;(One can see this index naming by looking at the source code of the Popup)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I reliably load these Calcite components from a custom widget, or is one not supposed to use them in widgets?&lt;/P&gt;&lt;P&gt;CoPilot tell me to "rely on the API’s automatic lazy loader: simply declare &amp;lt;calcite-flow&amp;gt; or &amp;lt;calcite-flow-item&amp;gt; in your TSX render() method", but that is not working for me, and since&amp;nbsp;"componentsUtils.loadCalciteComponents" is still used in the 4.34 Popup code, even ESRI still had to load them manually.&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>Wed, 15 Apr 2026 02:05:58 GMT</pubDate>
    <dc:creator>GertConradie</dc:creator>
    <dc:date>2026-04-15T02:05:58Z</dc:date>
    <item>
      <title>Delayed loading of some Calcite web components in Custom Widget (version 4.34)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delayed-loading-of-some-calcite-web-components-in/m-p/1696342#M88359</link>
      <description>&lt;P&gt;I use&amp;nbsp;calcite-flow in a custom widget and want to upgrade from 4.30 to version 4.34&lt;/P&gt;&lt;P&gt;In the past I had to load some&amp;nbsp;Calcite components&amp;nbsp;(like calcite-flow) with "componentsUtils.loadCalciteComponents" to a path like:&lt;/P&gt;&lt;P&gt;"flow: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-flow'], a))"&amp;nbsp;&lt;/P&gt;&lt;P&gt;See my post here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/calcite-design-system-questions/calcite-elements-in-custom-widget-but-shadow-dom/td-p/1547506" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/calcite-design-system-questions/calcite-elements-in-custom-widget-but-shadow-dom/td-p/1547506&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From CoPilot:&lt;/P&gt;&lt;P&gt;"Some components (like calcite-button) are eagerly registered because they’re used in core widgets, while others (like calcite-flow) only get registered when a widget that depends on them (e.g. Popup) is instantiated."&lt;/P&gt;&lt;P&gt;I can confirm that if I open a popup on the map before using my Widget, everything works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently the naming convention for the chunks is "indexed", while the index increment change between ArcGIS JavaScript Maps SDK version and i assume incremental releases as well.:&lt;/P&gt;&lt;P&gt;"flow: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/index19'], a)),"&lt;/P&gt;&lt;P&gt;(One can see this index naming by looking at the source code of the Popup)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I reliably load these Calcite components from a custom widget, or is one not supposed to use them in widgets?&lt;/P&gt;&lt;P&gt;CoPilot tell me to "rely on the API’s automatic lazy loader: simply declare &amp;lt;calcite-flow&amp;gt; or &amp;lt;calcite-flow-item&amp;gt; in your TSX render() method", but that is not working for me, and since&amp;nbsp;"componentsUtils.loadCalciteComponents" is still used in the 4.34 Popup code, even ESRI still had to load them manually.&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>Wed, 15 Apr 2026 02:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delayed-loading-of-some-calcite-web-components-in/m-p/1696342#M88359</guid>
      <dc:creator>GertConradie</dc:creator>
      <dc:date>2026-04-15T02:05:58Z</dc:date>
    </item>
  </channel>
</rss>

