This commit is contained in:
Jeff Emmett 2025-11-10 18:10:55 -08:00
parent 62afed445e
commit 3072dc70c0
1 changed files with 2 additions and 1 deletions

View File

@ -374,10 +374,11 @@ export function Board() {
checkAndFixMissingShapes()
// Listen to store changes to continuously monitor for missing shapes
// Listen to ALL sources (user, remote, etc.) to catch shapes loaded from Automerge
const unsubscribe = store.store.listen(() => {
// Debounce the check to avoid excessive calls
setTimeout(checkAndFixMissingShapes, 500)
}, { source: "user", scope: "document" })
})
return () => {
unsubscribe()