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

After the treedata of the tree component is modified, the component does not re-render to display the new value. It is possible in 3.0.0-beta.13, but it will not work after upgrading to 3.1.1 #5480

Closed
1 task
paoyideyun opened this issue Apr 11, 2022 · 6 comments
Labels

Comments

@paoyideyun
Copy link

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

Version

3.1.0

Environment

vue3.2.31 ,chrome 99,

Reproduction link

Edit on CodeSandbox

Steps to reproduce

第一次给万完值之后,后续需要对tree进行增删改查时候发现add了值之后组件不render,但是显示是有值的

What is expected?

希望恢复到3.0.0-beta.13那样时候,我改变值组件能刷新

What is actually happening?

现在组件不刷新,tree的那一个层级有值,查看发现该组件的子组件没获取到

@github-actions github-actions bot changed the title tree组件的treedata修改之后组件不重新render显示新的值,在3.0.0-beta.13是可以的,升级到3.1.1之后就不行了 After the treedata of the tree component is modified, the component does not re-render to display the new value. It is possible in 3.0.0-beta.13, but it will not work after upgrading to 3.1.1 Apr 11, 2022
@phillyx
Copy link

phillyx commented Apr 11, 2022

I met the same problem. I have to downgrade the version to 3.0.x

@zkwolf
Copy link
Member

zkwolf commented Apr 12, 2022

vuejs/core#5371 看起来像已知的问题?@tangjinzhou

@tangjinzhou
Copy link
Member

可以先 treeData.value = treeData.value.slice()

@paoyideyun
Copy link
Author

可以先 treeData.value = treeData.value.slice()

如果我是添加或者重新查询出来的数据需要渲染怎么办?

@wHannnnnn
Copy link

修改treeData中的某一条数据组件也不会更新。

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants