fix prod
This commit is contained in:
parent
59562e07c5
commit
061b3871fe
|
|
@ -374,10 +374,11 @@ export function Board() {
|
||||||
checkAndFixMissingShapes()
|
checkAndFixMissingShapes()
|
||||||
|
|
||||||
// Listen to store changes to continuously monitor for missing shapes
|
// 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(() => {
|
const unsubscribe = store.store.listen(() => {
|
||||||
// Debounce the check to avoid excessive calls
|
// Debounce the check to avoid excessive calls
|
||||||
setTimeout(checkAndFixMissingShapes, 500)
|
setTimeout(checkAndFixMissingShapes, 500)
|
||||||
}, { source: "user", scope: "document" })
|
})
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
unsubscribe()
|
unsubscribe()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue