We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
创建 observable 的对象数组并 observe,删除数组中的元素,并对删除位置之后元素内的属性进行修改,观察 observe 的结果
observe 到的 path 为元素位置改变后的 path
observe 到的 path 为元素位置改变前的 path
@formily/reactive@2.0.0-beta.65
此问题在实际业务场景中,可导致在 ArrayField 中删除中间位置元素并修改原位置属性值的时候,后续所有元素的属性值全部被改变,甚至会在最后多出已被删除的元素
The text was updated successfully, but these errors were encountered:
来个PR?
Sorry, something went wrong.
业务需求赶着提测呢实在没空啊,光是排查分析给到这个最小复现就已经花了一天了😫
目前只知道是 index 改变时没有更新 RawNode 里的映射,但是应该在什么时机做这个事我也还没空细看。 这个逻辑毕竟是你写的你应该清楚些,要不至少在这里提供下思路?如果好弄的话我来修也行。
RawNode
大致看了一下,不太好修...
a1e7200
No branches or pull requests
Reproduction link
Steps to reproduce
创建 observable 的对象数组并 observe,删除数组中的元素,并对删除位置之后元素内的属性进行修改,观察 observe 的结果
What is expected?
observe 到的 path 为元素位置改变后的 path
What is actually happening?
observe 到的 path 为元素位置改变前的 path
Package
@formily/reactive@2.0.0-beta.65
此问题在实际业务场景中,可导致在 ArrayField 中删除中间位置元素并修改原位置属性值的时候,后续所有元素的属性值全部被改变,甚至会在最后多出已被删除的元素
The text was updated successfully, but these errors were encountered: