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.

Zuletzt veröffentlicht: October 10, 2022 ArcGIS API for JavaScript
Bug-ID-Nummer BUG-000152563
EingereichtSeptember 26, 2022
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for JavaScript
Gefunden in Version4.24
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusAs Designed

Zusätzliche Informationen

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000152563

Software:

  • ArcGIS API for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln