File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments