Match-id-a91a7a5cd8ad285d742a7486e28a1da2a994cfa7
This commit is contained in:
parent
2c4ecec059
commit
181e14e0f1
|
@ -78,7 +78,9 @@ export class Observer implements IObserver {
|
||||||
// 对象的属性被赋值时调用
|
// 对象的属性被赋值时调用
|
||||||
setProp(key: string | symbol): void {
|
setProp(key: string | symbol): void {
|
||||||
const vNodes = this.keyVNodes.get(key);
|
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) {
|
if (vNode.isStoreChange) {
|
||||||
// VNode已经被触发过,不再重复触发
|
// VNode已经被触发过,不再重复触发
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue