You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HaixingOoO
changed the title
[Dialog] useDialogPosition 绑定了 getClickPosition,但没有清楚,导致多次渲染后,性能下降
[Dialog] useDialogPosition 绑定了 getClickPosition,多次渲染没有清除,导致性能下降
Feb 21, 2024
tdesign-react 版本
1.5.1
重现链接
No response
重现步骤
该部分代码只添加了事件,但没有清除,导致一直累加,多次渲染后导致性能严重下降。
https://github.com/Tencent/tdesign-react/blob/1718fbef56f3e503a5b34489b1af7d4f9c59aef8/src/dialog/hooks/useDialogPosition.ts#L16C1-L18C4
期望结果
No response
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
下面的
useEffect
已经处理了事件绑定,这部分是不是可以删掉?The text was updated successfully, but these errors were encountered: