Skip to content

Commit 00b31b5

Browse files
author
zhoujunxiong
committed
fix: Avoid exponential loops when a large number of components are unloaded
1 parent 6611c31 commit 00b31b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/useForm.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,10 @@ export class FormStore {
682682
}
683683
}
684684

685-
this.notifyWatch([namePath]);
685+
// Avoid exponential loops when a large number of components are unloaded
686+
setTimeout(() => {
687+
this.notifyWatch([namePath]);
688+
})
686689
};
687690
};
688691

0 commit comments

Comments
 (0)