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
I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
Open the CodeSandbox link, expand parent1, then expand leaf 1-0. Finally change the tab to b, expand parent1. Now leaf 1-0's triangle icon disappeared, it should render.
Set two different treeData to a tree. There are some nodes that the key are same in this treeData. To load data asynchronously when click to expand a treeNode. Then change the treeData, the triangle icon of the treeNode has the same key as the last load data treeNode disappeared.
What is expected?
the triangle icon render
What is actually happening?
the triangle icon disappeared
Environment
Info
antd
undefined
React
^16.8.6
System
macOS Mojave 10.14.5
Browser
google chrome 85.0.4183.102
The text was updated successfully, but these errors were encountered:
HeWei-imagineer
changed the title
Tree didn't update node data
Tree didn't update node data 树组件会缓存具有相同key的节点的属性
Sep 29, 2020
Reproduction link
Steps to reproduce
Open the CodeSandbox link, expand parent1, then expand leaf 1-0. Finally change the tab to b, expand parent1. Now leaf 1-0's triangle icon disappeared, it should render.
Set two different treeData to a tree. There are some nodes that the key are same in this treeData. To load data asynchronously when click to expand a treeNode. Then change the treeData, the triangle icon of the treeNode has the same key as the last load data treeNode disappeared.
What is expected?
the triangle icon render
What is actually happening?
the triangle icon disappeared
The text was updated successfully, but these errors were encountered: