@@ -113,7 +113,7 @@ import { serializeAttribute } from './utils/styles';
113
113
import type { ValueOrPromise } from './utils/types' ;
114
114
115
115
// Turn this on to get debug output of what the scheduler is doing.
116
- const DEBUG : boolean = false ;
116
+ const DEBUG : boolean = true ;
117
117
118
118
export const enum ChoreType {
119
119
/// MASKS defining three levels of sorting
@@ -259,6 +259,13 @@ export const createScheduler = (
259
259
type === ChoreType . NODE_DIFF ||
260
260
type === ChoreType . NODE_PROP ;
261
261
if ( isServer && isClientOnly ) {
262
+ DEBUG &&
263
+ debugTrace (
264
+ `skip client chore ${ debugChoreTypeToString ( type ) } ` ,
265
+ null ,
266
+ currentChore ,
267
+ choreQueue
268
+ ) ;
262
269
return ;
263
270
}
264
271
@@ -675,8 +682,8 @@ function vNodeAlreadyDeleted(chore: Chore): boolean {
675
682
) ;
676
683
}
677
684
678
- function debugChoreToString ( chore : Chore ) : string {
679
- const type =
685
+ function debugChoreTypeToString ( type : ChoreType ) : string {
686
+ return (
680
687
(
681
688
{
682
689
[ ChoreType . QRL_RESOLVE ] : 'QRL_RESOLVE' ,
@@ -691,8 +698,12 @@ function debugChoreToString(chore: Chore): string {
691
698
[ ChoreType . VISIBLE ] : 'VISIBLE' ,
692
699
[ ChoreType . CLEANUP_VISIBLE ] : 'CLEANUP_VISIBLE' ,
693
700
[ ChoreType . WAIT_FOR_ALL ] : 'WAIT_FOR_ALL' ,
694
- } as any
695
- ) [ chore . $type$ ] || 'UNKNOWN: ' + chore . $type$ ;
701
+ } as Record < ChoreType , string >
702
+ ) [ type ] || 'UNKNOWN: ' + type
703
+ ) ;
704
+ }
705
+ function debugChoreToString ( chore : Chore ) : string {
706
+ const type = debugChoreTypeToString ( chore . $type$ ) ;
696
707
const host = String ( chore . $host$ ) . replaceAll ( / \n .* / gim, '' ) ;
697
708
const qrlTarget = ( chore . $target$ as QRLInternal < any > ) ?. $symbol$ ;
698
709
return `Chore(${ type } ${ chore . $type$ === ChoreType . QRL_RESOLVE || chore . $type$ === ChoreType . RUN_QRL ? qrlTarget : host } ${ chore . $idx$ } )` ;
0 commit comments