diff --git a/packages/client/src/pizzax.ts b/packages/client/src/pizzax.ts index de3924da1..c05e1fcf1 100644 --- a/packages/client/src/pizzax.ts +++ b/packages/client/src/pizzax.ts @@ -14,7 +14,7 @@ type ReactiveState = { [K in keyof T]: Ref; type ArrayElement = A extends readonly (infer T)[] ? T : never; -const connection = $i ? stream.useChannel('main') : null; +const connection = $i && stream.useChannel('main'); export class Storage { public readonly ready: PromiseLike;