version-polling icon indicating copy to clipboard operation
version-polling copied to clipboard

new feature:能否对事件触发的更新添加节流?

Open qhm1 opened this issue 7 months ago • 1 comments

当前使用场景是对路由事件进行监听,当页面快速切换时,会重复的请求 index.html,希望能对事件触发更新添加节流操作(比如节流60s)来节省流量

qhm1 avatar Jun 16 '25 06:06 qhm1

  1. 可以在dispatchEvent代码处自行添加节流处理。
  2. 可以加个silentPageVisibility: true,禁用页面切换检测。

JoeshuTT avatar Jun 16 '25 07:06 JoeshuTT