-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: add shared demo #15
Conversation
|
||
// To save memory, convert map to array. | ||
const element = new Y.Array<Y.Array<any>>(); | ||
element.insert(0, [fixedFieldArray, customFieldArray]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里正常 array 嵌套 YArray 是不是可能有问题
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (const fieldId in record['value']) { | ||
customFields.push(record['value'][fieldId]); | ||
} | ||
customFieldArray.insert(0, customFields); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里也是 YArray 嵌套了 array
No description provided.