From bda2523e3ba908189d28f3bd7e07ce2749b5fd0b Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Mon, 10 Nov 2025 18:29:19 -0800 Subject: [PATCH] fix production automerge --- src/routes/Board.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/routes/Board.tsx b/src/routes/Board.tsx index b07b117..cfb4214 100644 --- a/src/routes/Board.tsx +++ b/src/routes/Board.tsx @@ -237,7 +237,6 @@ export function Board() { // Only check if store is synced if (store.status !== 'synced-remote') { - console.log(`📊 Board: Store not synced yet (status: ${store.status}), skipping shape check`) return } @@ -383,7 +382,7 @@ export function Board() { return () => { unsubscribe() } - }, [editor, store.store]) + }, [editor, store.store, store.status]) // Update presence when session changes useEffect(() => { @@ -519,6 +518,18 @@ export function Board() { }; }, [editor]); + // Only render Tldraw when store is ready and synced + // This ensures shapes are loaded before Tldraw initializes + if (!store.store || store.status !== 'synced-remote') { + return ( + +
+
Loading canvas...
+
+
+ ) + } + return (