[Bug]: 通过 addChildrenData、removeNodeData 方法,新增或删除某个节点,然后调用 render 方法后整棵树都会重新展开。
- Dominant language
- TypeScript
- Stars
- 12.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug / 问题描述
通过 addChildrenData、removeNodeData 方法,新增或删除某个节点,然后调用 render 方法后整棵树都会重新展开。 希望不要整个树全部重新渲染
### Reproduction link / 复现链接
_No response_
### Steps to Reproduce the Bug or Issue / 重现步骤
_No response_
### Version / 版本
Please select / 请选择
### OS / 操作系统
- [x] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他
### Browser / 浏览器
- [x] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the behavior with addChildrenData or removeNodeData followed by render, using the tree visualization in G6. Trace the tree update and rendering path to determine why expansion state is lost; done means updating the affected node without reopening the entire tree and avoiding a full rerender.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100