From 6f83f32d5c954daba94494af7833de6a58661c03 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sun, 3 Aug 2025 18:34:32 -0700 Subject: [PATCH] remove unused code --- .../client/src/features/editor/page-editor.tsx | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/apps/client/src/features/editor/page-editor.tsx b/apps/client/src/features/editor/page-editor.tsx index 3893ea5e..dd88a0ef 100644 --- a/apps/client/src/features/editor/page-editor.tsx +++ b/apps/client/src/features/editor/page-editor.tsx @@ -99,24 +99,6 @@ export default function PageEditor({ const localProvider = providersRef.current?.local; const remoteProvider = providersRef.current?.remote; - // Track when collaborative provider is ready and synced - const [collabReady, setCollabReady] = useState(false); - - useEffect(() => { - if ( - remoteProvider?.configuration.websocketProvider.status === - WebSocketStatus.Connected && - isLocalSynced && - isRemoteSynced - ) { - setCollabReady(true); - } - }, [ - remoteProvider?.configuration.websocketProvider.status, - isLocalSynced, - isRemoteSynced, - ]); - useEffect(() => { if (!providersRef.current) { const local = new IndexeddbPersistence(documentName, ydoc);