Skip to content

syncDebug

syncDebug(event, data?): void

Defined in: packages/client/src/debug.ts:38

Log one timestamped event. Prints to the console only when globalThis.__pgxsinkitDebug is on, but ALSO feeds any installed setSyncDebugSink sink (so the worker can forward the rail to tabs even when the worker’s own console gate is off). No sink AND not enabled → an early return, so the off-path pays nothing.

string

Record<string, unknown>

void