| Numéro d’ID de bogue |
BUG-000152563 |
| Envoi | September 26, 2022 |
| Dernière modification | June 5, 2024 |
| S’applique à | ArcGIS API for JavaScript |
| Version trouvée | 4.24 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 10.0 64 Bit |
| Statut | As Designed
Après examen par l’équipe de développement, il a été déterminé que ce comportement est prévu. Pour plus d’informations, reportez-vous à la section Informations supplémentaires.
|
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