Skip to content

Commit fe6fd59

Browse files
committed
WIP
1 parent 4edaf77 commit fe6fd59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/svelte/src/internal/client/dev/tracing.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ export function trace(fn, label, computed) {
104104
if (previously_tracing_expressions !== null) {
105105
previously_tracing_expressions.push(...tracing_expressions);
106106
}
107-
} else if (previously_tracing_expressions !== null) {
107+
} else if (
108+
previously_tracing_expressions !== null &&
109+
previously_tracing_expressions.length !== 0
110+
) {
108111
previously_tracing_expressions.push({
109112
label,
110113
value,

0 commit comments

Comments
 (0)