Skip to content

Commit 0b61179

Browse files
committed
WIP
1 parent 35da890 commit 0b61179

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ function log_expressions(expressions) {
2424
// eslint-disable-next-line no-console
2525
console.groupCollapsed(
2626
`%c${label} %c${time.toFixed(2)}ms`,
27-
!changed ? 'color: darkgrey; font-weight: normal' : 'font-weight: bold',
27+
!changed ? 'color: darkgrey; font-weight: normal' : 'color: #fff; font-weight: bold',
2828
'color: grey',
2929
val && typeof val === 'object' && STATE_SYMBOL in val ? snapshot(val, true) : val
3030
);
3131
} else {
3232
// eslint-disable-next-line no-console
3333
console.groupCollapsed(
3434
`%c${label}`,
35-
!changed ? 'color: darkgrey; font-weight: normal' : 'font-weight: bold',
35+
!changed ? 'color: darkgrey; font-weight: normal' : 'color: #fff; font-weight: bold',
3636
val && typeof val === 'object' && STATE_SYMBOL in val ? snapshot(val, true) : val
3737
);
3838
}

packages/svelte/src/internal/client/runtime.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,9 @@ export function get(signal) {
789789

790790
if (DEV && active_reaction !== null && tracing_expressions !== null) {
791791
set_tracing_expression_reactive(
792-
signal.version > active_reaction.version ? REACTIVE_CHANGED : REACTIVE_UNCHANGED
792+
signal.version > active_reaction.version || active_reaction.version === 0
793+
? REACTIVE_CHANGED
794+
: REACTIVE_UNCHANGED
793795
);
794796
}
795797

0 commit comments

Comments
 (0)