Replies: 1 comment
-
unwatchFns.push(
) 我看了dataSource这段代码,如果props.entities的顺序改变了,是否就会导致重复id的问题 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
vc-data-source中entities中使用响应式对象,当定时通过接口获取数据进行全量更新时,有时会出现某个entity的id重复报错,但是获取的数据中的编号是没有重复的
报错信息:xxxx already exists in this collection
而且这个错误也不是必现,有一定几率触发,请问该如何解决呢?万分感谢!
原因应该是entities的长度没有变化,但是数据的顺序发生了改变,导致了先移除了另一个id,再添加当前id,但是当前的id已经存在了
Beta Was this translation helpful? Give feedback.
All reactions