Element Plus version
1.1.0-beta.9
OS/Browsers version
macOS 11.3.1, Edge 93.0.961.38
Vue version
3.2.11
Reproduction Link
https://codesandbox.io/s/element-plus-table-repeat-render-j9zmq?file=/src/Table.vue
Steps to reproduce
NONE
What is Expected?
When the state of the parent component has not changed, the table component should only be rendered once.
What is actually happening?
repeated render.
3条答案
按热度按时间ujv3wf0j1#
It seems to be dulicapted of #2976
oknwwptz2#
@sxzz I am not sure this is a duplicate question. Their situation is somewhat different.
I know table component will use an empty data to render column component once at the beginning, which corresponds to mark 1 in the screenshot below.
But you can also see that after that, the table component was rendered 3 times with real data:
p8h8hvxi3#
/cc @element-plus/backers