VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Bug] 异步加载场景鼠标拖动滚动条会产生海量请求

Open Lionad-Morotar opened this issue 1 year ago • 2 comments

Version

1.5.4

Link to Minimal Reproduction

https://visactor.io/vtable/demo/performance/async-data

Steps to Reproduce

  1. 拖动滚动条到底部
  2. 所有鼠标滚动条经过的区域都出现了请求

Current Behavior

image

Expected Behavior

应当设置防抖函数并将参数暴露给 dataSource

Environment

- OS: not related
- Browser: not related
- Framework: not related

Any additional comments?

No response

Lionad-Morotar avatar Aug 06 '24 09:08 Lionad-Morotar

你可以在异步请求的地方自己来加个节流处理的

fangsmile avatar Aug 07 '24 02:08 fangsmile

你可以在异步请求的地方自己来加个节流处理的

确实可以自行处理,只是类似问题在每个表格都会碰到,也许交由DataSource实现合理一些

Lionad-Morotar avatar Aug 07 '24 16:08 Lionad-Morotar