<?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: Query feature layer in React function component with Experience Builder developer edition v1.14 in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/query-feature-layer-in-react-function-component/m-p/1525547#M14427</link>
    <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454780"&gt;@Junshan_Liu&lt;/a&gt;&amp;nbsp;very much for response. On GUI it shows same message&amp;nbsp;"Fail to load".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erro1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113202i5BCE59684A53AAE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erro1.jpg" alt="erro1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The detailed error is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erro2.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113203iEF720B90110C9810/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erro2.jpg" alt="erro2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 01:36:00 GMT</pubDate>
    <dc:creator>Ming</dc:creator>
    <dc:date>2024-08-22T01:36:00Z</dc:date>
    <item>
      <title>Query feature layer in React function component with Experience Builder developer edition v1.14</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/query-feature-layer-in-react-function-component/m-p/1525529#M14423</link>
      <description>&lt;P&gt;Anyone has experience to query feature layer in React function component&amp;nbsp;with Experience Builder developer edition v1.14? Following simple code just failed to load.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;Query&lt;/SPAN&gt; &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;'esri/rest/support/Query'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;export&lt;/SPAN&gt; &lt;SPAN&gt;default&lt;/SPAN&gt; &lt;SPAN&gt;function&lt;/SPAN&gt; &lt;SPAN&gt;Filter&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;query&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;Query&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It can load if remove that one line Query code. ChatGPT says "Using&amp;nbsp;esri/rest/support/Query&amp;nbsp;in a React function component can be challenging due to the asynchronous nature of the ArcGIS API and the lifecycle of React components.&amp;nbsp;", so changed to use useEffect, useRef, but still doesn't work.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for any suggestion!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Aug 2024 01:18:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/query-feature-layer-in-react-function-component/m-p/1525529#M14423</guid>
      <dc:creator>Ming</dc:creator>
      <dc:date>2024-08-22T01:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query feature layer in React function component with Experience Builder developer edition v1.14</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/query-feature-layer-in-react-function-component/m-p/1525541#M14425</link>
      <description>&lt;P&gt;What errors do you see after using the useEffect?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 01:24:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/query-feature-layer-in-react-function-component/m-p/1525541#M14425</guid>
      <dc:creator>Junshan_Liu</dc:creator>
      <dc:date>2024-08-22T01:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Query feature layer in React function component with Experience Builder developer edition v1.14</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/query-feature-layer-in-react-function-component/m-p/1525547#M14427</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454780"&gt;@Junshan_Liu&lt;/a&gt;&amp;nbsp;very much for response. On GUI it shows same message&amp;nbsp;"Fail to load".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erro1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113202i5BCE59684A53AAE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erro1.jpg" alt="erro1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The detailed error is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erro2.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113203iEF720B90110C9810/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erro2.jpg" alt="erro2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 01:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/query-feature-layer-in-react-function-component/m-p/1525547#M14427</guid>
      <dc:creator>Ming</dc:creator>
      <dc:date>2024-08-22T01:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Query feature layer in React function component with Experience Builder developer edition v1.14</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/query-feature-layer-in-react-function-component/m-p/1525550#M14428</link>
      <description>&lt;P&gt;Oh, can you add the&amp;nbsp;&lt;STRONG&gt;"dependency": "jimu-arcgis",&lt;/STRONG&gt; into the widget manifest.json?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 01:42:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/query-feature-layer-in-react-function-component/m-p/1525550#M14428</guid>
      <dc:creator>Junshan_Liu</dc:creator>
      <dc:date>2024-08-22T01:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query feature layer in React function component with Experience Builder developer edition v1.14</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/query-feature-layer-in-react-function-component/m-p/1525566#M14431</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454780"&gt;@Junshan_Liu&lt;/a&gt;&amp;nbsp;Thank you so much for your magical power, it works now, cheers!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Thanks!.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113210i25F2163211AB1CDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Thanks!.jpg" alt="Thanks!.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 02:50:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/query-feature-layer-in-react-function-component/m-p/1525566#M14431</guid>
      <dc:creator>Ming</dc:creator>
      <dc:date>2024-08-22T02:50:09Z</dc:date>
    </item>
  </channel>
</rss>

