laptop and a wrench

Bogue

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

Dernière publication: October 10, 2022 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000152563
EnvoiSeptember 26, 2022
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée4.24
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutAs Designed

Informations supplémentaires

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.

Étapes pour reproduire

ID de bogue: BUG-000152563

Logiciel:

  • ArcGIS API for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement