在index.tsx中,
使用并发模式,每隔0.5秒,点击操作按钮30次左右,可以看到树在切换过程中目录树发生闪烁,有问题。
注释掉并发模式代码,开启非并发模式,每隔0.5秒,点击操作按钮30次左右,切换过程中树不闪烁,没有问题。
不论是否开启并发模式,切换树的过程,不应该发生闪烁
使用并发模式,每隔0.5秒,点击操作按钮30次左右,可以看到树在切换过程中目录树发生闪烁。
Environment | Info |
---|---|
antd | 5.14.2 |
React | 18.2.0 |
System | mac 14.1.2 (23B92) |
Browser | 121.0.6167.184 |
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too