Skip to content
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

packages/editor/src/services/editor.ts 文件中的update方法有bug,导致父子组件更新时调用doUpdate子组件获取到info.parent是旧数据 #585

Open
841148070 opened this issue Mar 30, 2024 · 1 comment

Comments

@841148070
Copy link

update方法中

const newNodes = await Promise.all(nodes.map((node) => this.doUpdate(node)));
改成
const newNodes: MNode[] = [];
(async () => {
for (const node of nodes) {
const newNode = await this.doUpdate(node)
newNodes.push(newNode);
}
})()
后亲测可用

@jia000
Copy link
Collaborator

jia000 commented Apr 8, 2024

什么场景的操作会同时修改到父子节点?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants