antvis/G6


The issue has been closed
[V5]使用setData&render更新数据,combo数据会报Node not found for id: xx #5880
qishenliang posted onGitHub
Describe the bug / 问题描述
第一次更新数据没问题,第二次开始,只要更换了combos的数据(与原来有差异)的时候,就会报错,报错代码在graphlib的getNode()函数,在获取combo时,nodeMap里面node已经被删除
Reproduction link / 重现链接
https://stackblitz.com/edit/react-ihejga?file=index.html,index.js
Steps to Reproduce the Bug or Issue / 重现步骤
等待第二秒定时器就会报错
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome
Additional context / 补充说明
No response