<?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: FeatureLayer.applyEdits() Stops Working After ~3 Calls in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-applyedits-stops-working-after-3/m-p/1524726#M85447</link>
    <description>&lt;P&gt;Here is a codepen that adds/deletes features from client-side FeatureLayer -&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/PorRwbM" target="_blank"&gt;https://codepen.io/U_B_U/pen/PorRwbM&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 20:31:52 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2024-08-20T20:31:52Z</dc:date>
    <item>
      <title>FeatureLayer.applyEdits() Stops Working After ~3 Calls</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-applyedits-stops-working-after-3/m-p/1524681#M85445</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was wondering if anyone could point me in the right direction, as I am stumped. I am using the Javascript 4.30 API in a Vue project with Typescript. I am making a feature layer from client-side graphics. I am using the ClassBreaksRenderer. My map component gets an array of features to be rendered via the component props. When the array changes, I update the feature layer like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;         stationLayer.applyEdits({
                deleteFeatures: oldData.map(makeStationGraphic),
                addFeatures: data.map(makeStationGraphic)
            }).then(console.log, console.log)
         .catch(console.log);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This works fine for the first few times, but after about the 3rd call to applyEdits(), the edits don't show on the map. There is no error message. The EditResult object contains the values I expect. The RefreshEvent object passed on the 'edits' event also looks correct.&lt;/P&gt;&lt;P&gt;My current solution is to delete and re-create the layer after every 3rd edit, but this is obviously silly.&lt;/P&gt;&lt;P&gt;Does anyone have any idea what might be happening here?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 19:54:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-applyedits-stops-working-after-3/m-p/1524681#M85445</guid>
      <dc:creator>skuehlshelby</dc:creator>
      <dc:date>2024-08-20T19:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer.applyEdits() Stops Working After ~3 Calls</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-applyedits-stops-working-after-3/m-p/1524723#M85446</link>
      <description>&lt;P&gt;Is it possible for you to create a simple codepen app showing the issue here? Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 20:29:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-applyedits-stops-working-after-3/m-p/1524723#M85446</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2024-08-20T20:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer.applyEdits() Stops Working After ~3 Calls</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-applyedits-stops-working-after-3/m-p/1524726#M85447</link>
      <description>&lt;P&gt;Here is a codepen that adds/deletes features from client-side FeatureLayer -&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/PorRwbM" target="_blank"&gt;https://codepen.io/U_B_U/pen/PorRwbM&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 20:31:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-applyedits-stops-working-after-3/m-p/1524726#M85447</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2024-08-20T20:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer.applyEdits() Stops Working After ~3 Calls</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-applyedits-stops-working-after-3/m-p/1524748#M85451</link>
      <description>&lt;P&gt;Could it be a problem with the ObjectIDs? I'm currently assigning the object ids manually. It doesn't look like the CodePen is doing that...&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 21:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-applyedits-stops-working-after-3/m-p/1524748#M85451</guid>
      <dc:creator>skuehlshelby</dc:creator>
      <dc:date>2024-08-20T21:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer.applyEdits() Stops Working After ~3 Calls</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-applyedits-stops-working-after-3/m-p/1524775#M85452</link>
      <description>&lt;P&gt;Looks like that was my mistake. I shouldn't be managing my own ObjectIDs, they get created automatically.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 22:03:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-applyedits-stops-working-after-3/m-p/1524775#M85452</guid>
      <dc:creator>skuehlshelby</dc:creator>
      <dc:date>2024-08-20T22:03:06Z</dc:date>
    </item>
  </channel>
</rss>

