-
Notifications
You must be signed in to change notification settings - Fork 318
[Bug] TypeError: Cannot assign to read only property 'properties' of object '#<Object>' #250
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
Comments
我跟进下,我后续有打算用表单的 重写这里的逻辑 |
好的感谢大佬,盼快点更新 |
大佬,我把JsonSchemaEditor这个组件搬到我本地改造。发现如果是本地写死的 initialData 文件的数据,就是都正常的,如果返回的 initialData 是拿后端接口数据的返回的,就必现报错。有什么招数可以临时补救吗,我试着改为不可变对象,但会一直刷 |
initialData 我传入组件的时候,深拷贝了下cloneDeep()数据传入解决了。 |
另外大佬重写的时候有个问题能不能看看修复,目前变量顺序会根据JS变量名循环的顺序,数字开头变量名永远在前,然后是字母等等。能不能保持添加顺序不动 |
@Jacky-Summer 嗯嗯,现在还没按照 extra.index 排序 |
@Jacky-Summer 没复现这个问题,你有没有用 mobx、immer 之类的库? |
有用第三方状态管理库,估计是这个原因,初始数据存了 |
@Jacky-Summer |
排序问题已修复到 0.2 版本 cc @Jacky-Summer |
Uh oh!
There was an error while loading. Please reload this page.
🙋 SDK Version
Please input version of SDK.
📌 Layout
Free layout or Fixed layout?
💻 Environment
📝 Question Description
偶现。usePropertiesEdit 这个hook。看起来是react的不可变性
The text was updated successfully, but these errors were encountered: