-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
连接桩port id 热更新提示错误 #4064
Comments
Open
我得一个cell有 100个 port, 比如我要批量隐藏,目前使用 于是,我想先 removePorts() 再 addPorts(), 当在 addPorts 传入得数组带 id 时 ,也会提示这个错误。。 console.time('del')
node.removePorts()
console.timeEnd('del')
node.addPorts(por.map((e, i) => {
return {
// id: e,
group: 'right',
attrs: {
text: {
text: i,
},
},
}
})) |
感觉就是组件在unmount的时候,没有清除数据,导致id重复 @America-first-melon @lloydzhou |
我也是自定义portid,不过没见过这个错 |
保存热更新的时候报错,你用vite吗 @cnyballk |
我不是用的vite 我用的umi,我等会用vite试试看 |
vite ok的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
连接点的id是自定义的,热更新就报错。
麻烦看一下,要是id再加一个随机数就正常,你们用UUID生产,每次热更新都不一样,所以没问题,我是固定id的,就报错。
Your Example Website or App
1
Steps to Reproduce the Bug or Issue
1
Expected behavior
1
Screenshots or Videos
1
Platform
Additional context
1
The text was updated successfully, but these errors were encountered: