laptop and a wrench

Error

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

Última publicación: October 10, 2022 ArcGIS API for JavaScript
Número de ID del error BUG-000152563
EnviadoSeptember 26, 2022
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada4.24
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoAs Designed

Información adicional

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.

Pasos para reproducir

ID del error: BUG-000152563

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga