@contentful/experiences-visual-editor-react 3.0.0-alpha-20250709T0751-bcbfd82.0 → 3.0.0-alpha-20250711T0717-d5ee667.0

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
@@ -4884,6 +4884,8 @@ const useCanvasGeometryUpdates = ({ tree }) => {
4884
4884
  // Handling DOM mutations
4885
4885
  useEffect(() => {
4886
4886
  const observer = new MutationObserver(() => debouncedUpdateGeometry(treeRef.current, 'mutation'));
4887
+ // send initial geometry in case the tree is empty
4888
+ debouncedUpdateGeometry(treeRef.current, 'mutation');
4887
4889
  observer.observe(document.documentElement, {
4888
4890
  childList: true,
4889
4891
  subtree: true,