Match-id-a91a7a5cd8ad285d742a7486e28a1da2a994cfa7

This commit is contained in:
* 2022-12-08 21:15:09 +08:00 committed by *
parent 2c4ecec059
commit 181e14e0f1
1 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,9 @@ export class Observer implements IObserver {
// 对象的属性被赋值时调用
setProp(key: string | symbol): void {
const vNodes = this.keyVNodes.get(key);
vNodes?.forEach((vNode: VNode) => {
//NOTE: using Set directly can lead to deadlock
const vNodeArray = Array.from(vNodes || []);
vNodeArray?.forEach((vNode: VNode) => {
if (vNode.isStoreChange) {
// VNode已经被触发过不再重复触发
return;