Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]table组件中使用customrender在hover时会有重渲染的情况 #7444

Closed
1 task
electroluxcode opened this issue Mar 20, 2024 · 2 comments
Closed
1 task

Comments

@electroluxcode
Copy link

electroluxcode commented Mar 20, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.1.0

Environment

node 18 antdv 3.x | 4.x

link

https://codesandbox.io/p/sandbox/antd-table-hover-bug-43p54p

Steps to reproduce

每一次hover的时候,这一行都会重新render,导致customrender 里面每一次的都是最新的元素。在我上面的codebox链接中,hover的时候一直在console台中输出render

性能问题是其一, 二是在antd写h和createVnode函数双向绑定的时候在每一次hover都会失效,因为会重新render(这是我在双向绑定switch这个组件的时候发现的,modalvalue和update:modalvalue每一次都是不同的值。。。。。。)

table

@electroluxcode
Copy link
Author

electroluxcode commented Mar 20, 2024

@electroluxcode electroluxcode changed the title table组件中使用customrender在hover时会有重渲染的情况 [BUG]table组件中使用customrender在hover时会有重渲染的情况 Mar 21, 2024
@electroluxcode
Copy link
Author

electroluxcode commented Mar 22, 2024

issue区找了一下,找到了3个相关的
#5454
#5453
#6003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant