AbortError when deleting a layer after changing its definitionExpression

1808
2
12-14-2022 03:36 PM
ironmaskito
New Contributor III

I am seeing an AbortError when calling `destroy()` on a GeoJSONLayer immediately after changing its definitionExpression to remove all features from view. The error does not appear to affect the functionality but it is unexpected. I am guessing the definitionExpression change triggers an async function that gets called after the layer is destroyed.

Here is an example of the error (open dev tools to see the error):

https://codepen.io/coxfsi/pen/abKeNva?editors=1000

Can we safely ignore this error, since it gives no details on what the actual problem can be?

0 Kudos
2 Replies
UndralBatsukh
Esri Regular Contributor

Hi there, 

You can safely ignore the error. We will investigate where the issue comes from and make sure we properly process the error for it to not show up.

0 Kudos
UndralBatsukh
Esri Regular Contributor

We fixed this Issue at 4.26. You can test the fix on our next release by the end of this week by pointing your app to:  <script src="https://js.arcgis.com/next/"></script>

-Undral

 

0 Kudos