We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8655ced commit 3ee7b4cCopy full SHA for 3ee7b4c
packages/runtime-core/src/warning.ts
@@ -30,7 +30,12 @@ export function popWarningContext() {
30
stack.pop()
31
}
32
33
+let isWarning = false
34
+
35
export function warn(msg: string, ...args: any[]) {
36
+ if (isWarning) return
37
+ isWarning = true
38
39
// avoid props formatting or warn handler tracking deps that might be mutated
40
// during patch, leading to infinite recursion.
41
pauseTracking()
@@ -70,6 +75,7 @@ export function warn(msg: string, ...args: any[]) {
70
75
71
76
72
77
resetTracking()
78
+ isWarning = false
73
79
74
80
81
export function getComponentTrace(): ComponentTraceStack {
0 commit comments