rita-workspace 0.5.8 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -579,9 +579,11 @@ function WorkspaceProvider({ children, lang = "en" }) {
579
579
  }
580
580
  };
581
581
  window.addEventListener("storage", onStorage);
582
+ const intervalId = setInterval(recheckConflict, 5e3);
582
583
  return () => {
583
584
  channel?.close();
584
585
  window.removeEventListener("storage", onStorage);
586
+ clearInterval(intervalId);
585
587
  };
586
588
  }, [activeDrawing?.id]);
587
589
  (0, import_react.useEffect)(() => {
package/dist/index.mjs CHANGED
@@ -511,9 +511,11 @@ function WorkspaceProvider({ children, lang = "en" }) {
511
511
  }
512
512
  };
513
513
  window.addEventListener("storage", onStorage);
514
+ const intervalId = setInterval(recheckConflict, 5e3);
514
515
  return () => {
515
516
  channel?.close();
516
517
  window.removeEventListener("storage", onStorage);
518
+ clearInterval(intervalId);
517
519
  };
518
520
  }, [activeDrawing?.id]);
519
521
  useEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rita-workspace",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "description": "Multi-drawing workspace feature for Rita (Excalidraw fork)",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",