<?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 Experience Builder Dev Config Caching Issue in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604027#M18353</link>
    <description>&lt;P&gt;EXB DEV Version: 1.14&lt;/P&gt;&lt;P&gt;Windows 10&lt;/P&gt;&lt;P&gt;I'm working on a custom widget that requires constant changes to the config.json during development. Saved changes to any of the .ts files show up in the application upon save, but changes to the config do not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I end up having to restart the server and add the widget to a new application to get the changes to the config to show up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to force EXB to read changes to the config? Or is there a less annoying solution than restarting the server and adding the widget to a new experience?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Apr 2025 23:35:33 GMT</pubDate>
    <dc:creator>JasonCityOfTacoma</dc:creator>
    <dc:date>2025-04-08T23:35:33Z</dc:date>
    <item>
      <title>Experience Builder Dev Config Caching Issue</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604027#M18353</link>
      <description>&lt;P&gt;EXB DEV Version: 1.14&lt;/P&gt;&lt;P&gt;Windows 10&lt;/P&gt;&lt;P&gt;I'm working on a custom widget that requires constant changes to the config.json during development. Saved changes to any of the .ts files show up in the application upon save, but changes to the config do not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I end up having to restart the server and add the widget to a new application to get the changes to the config to show up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to force EXB to read changes to the config? Or is there a less annoying solution than restarting the server and adding the widget to a new experience?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 23:35:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604027#M18353</guid>
      <dc:creator>JasonCityOfTacoma</dc:creator>
      <dc:date>2025-04-08T23:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder Dev Config Caching Issue</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604072#M18360</link>
      <description>&lt;P&gt;I think you don't need to restart the server. You can try Ctrl+Shift+R to clear the cache, or disable the cache in DevTools Network(remember to uncheck it when you're not developing).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Allen_Zhang_1-1744183971811.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129760i9F803F3567C363F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Allen_Zhang_1-1744183971811.png" alt="Allen_Zhang_1-1744183971811.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Re-adding a new widget is inevitable because the default settings defined in config.json are applied when adding a widget.&lt;/P&gt;&lt;P&gt;Another solution is to define the default settings in the widget.tsx instead of the config.json. Such as below code from the measurement widget:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Allen_Zhang_0-1744183845128.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129759i6A02B713EF0A1426/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Allen_Zhang_0-1744183845128.png" alt="Allen_Zhang_0-1744183845128.png" /&gt;&lt;/span&gt;&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, 09 Apr 2025 07:33:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604072#M18360</guid>
      <dc:creator>Allen_Zhang</dc:creator>
      <dc:date>2025-04-09T07:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder Dev Config Caching Issue</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604256#M18379</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/880992"&gt;@JasonCityOfTacoma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This is the recommended approach: &lt;A href="https://developers.arcgis.com/experience-builder/guide/deployment-topics/#service-worker-cache" target="_blank"&gt;https://developers.arcgis.com/experience-builder/guide/deployment-topics/#service-worker-cache&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if there are any questions.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 16:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604256#M18379</guid>
      <dc:creator>WesleyO</dc:creator>
      <dc:date>2025-04-09T16:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder Dev Config Caching Issue</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604389#M18390</link>
      <description>&lt;P&gt;Thank you for your response!&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding is that EXB treats the config.json a certain way, it has to be named exactly that, and it gets cached automatically when the widget is added.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my config I'm maybe doing too much? I'm defining rest endpoints for the widget to query and defining fields and hyperlinks. Basically, a user clicks on the map, and the widget gathers data from ArcGIS REST endpoints that are not in the map and displays it in a custom widget. So I'm constantly changing the config during development.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to keep that configuration separate from the business logic in the widget. Can you recommend a method that would allow me to see immediate changes during development, without adding more to my widget file?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 20:48:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604389#M18390</guid>
      <dc:creator>JasonCityOfTacoma</dc:creator>
      <dc:date>2025-04-09T20:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder Dev Config Caching Issue</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604390#M18391</link>
      <description>&lt;P&gt;That works for deployment, but what about during development? I'm trying to avoid having to restart/rename things because I made a change to a configuration file. Should I be importing a separate config file for things like REST endpoints and URL template, that is not in the main config.json that EXB is looking for?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 20:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604390#M18391</guid>
      <dc:creator>JasonCityOfTacoma</dc:creator>
      <dc:date>2025-04-09T20:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder Dev Config Caching Issue</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604473#M18398</link>
      <description>&lt;P&gt;If you don't want to re-adding a new widget, &lt;SPAN&gt;defining the default settings in the config.json won't do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To keep the business logic clean, you can store the default settings in another file such as config.ts, and merge them in widget.tsx.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//config.ts
export const defaultConfig = {
  a: 'foo',
  b: false
}
//
import defaultConfig from '../config.ts'

function Widget (props: AllWidgetProps&amp;lt;IMConfig&amp;gt;): React.ReactElement {
  const { id, config } = props
  // If the config has deep structure, use lodash.merge(config, defaultConfig)
  const fullConfig = Object.assign(config, defaultConfig)
  const {
    a,
    b
  } = fullConfig
  ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 01:27:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-dev-config-caching-issue/m-p/1604473#M18398</guid>
      <dc:creator>Allen_Zhang</dc:creator>
      <dc:date>2025-04-10T01:27:45Z</dc:date>
    </item>
  </channel>
</rss>

