Skip to content

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

@electroluxcode

Description

@electroluxcode
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions