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 (
+
+
+
+ )
+ }
+
return (