laptop and a wrench

漏洞

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

上次发布: October 10, 2022 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000152563
已提交September 26, 2022
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本4.24
操作系统Windows OS
操作系统版本10.0 64 Bit
状态As Designed

附加信息

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.

重现步骤

漏洞 ID: BUG-000152563

软件:

  • ArcGIS API for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项