laptop and a wrench

Bug

Updating the property of the view gets triggered multiple times on extent change in ArcGIS API for JavaScript 4.24.

Last Published: October 10, 2022 ArcGIS API for JavaScript
Bug ID Number BUG-000152563
SubmittedSeptember 26, 2022
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.24
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusAs Designed

Additional Information

The CodePen code provided in this issue works as designed. The number of messages increases in the console for the layerView.updating because a new watcher is installed on layerView.updating every time the view becomes stationary. To run a logic when the view.stationary is true and when layerView.updating is false, use the following code: view.whenLayerView(featureLayer).then((layerView) => { // reactiveUtils reactiveUtils.when( () => view.stationary && !layerView.updating, (val) => console.log("reactive: view stationary and not layerView updating", val) ); }); Refer to this CodePen app for the sample code: https://codepen.io/U_B_U/pen/vYjVYyM?editors=1000.

Steps to Reproduce

Bug ID: BUG-000152563

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options