Skip to content

Commit 1a78177

Browse files
committed
merge
2 parents 197cfbe + 94d0b08 commit 1a78177

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@ function log_entry(signal, entry) {
4343
const type = (signal.f & DERIVED) !== 0 ? '$derived' : '$state';
4444
const current_reaction = /** @type {Reaction} */ (active_reaction);
4545
const dirty = signal.wv > current_reaction.wv || current_reaction.wv === 0;
46-
const { label: name } = signal;
4746
const style = dirty
4847
? 'color: CornflowerBlue; font-weight: bold'
4948
: 'color: grey; font-weight: normal';
49+
5050
// eslint-disable-next-line no-console
5151
console.groupCollapsed(
52-
typeof name === 'string' ? `%c${name}${type}` : `%c${type}`,
52+
signal.label ? `%c${type}%c ${signal.label}` : `%c${type}%c`,
5353
style,
54+
dirty ? 'font-weight: normal' : style,
5455
typeof value === 'object' && value !== null && STATE_SYMBOL in value
5556
? snapshot(value, true)
5657
: value

0 commit comments

Comments
 (0)