Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
comment the designerReady event
Oleg Isonen4587a9212f96
diff --git a/apps/designer/app/designer/designer.tsx b/apps/designer/app/designer/designer.tsxindex d051a8258b..f3108aacaa 100644--- a/apps/designer/app/designer/designer.tsx+++ b/apps/designer/app/designer/designer.tsx@@ -232,6 +232,8 @@ export const Designer = ({ config, project }: DesignerProps) => {publishRef.current = ref;onRefReadCanvasWidth(ref);onRefReadCanvas(ref);+ // We publish this even to let canvas know that we are now listening to the events, otherwise if canvas loads faster than designer, which is possible with SSR,+ // we can miss the events and designer will just not connect to the canvas.publish({ type: "designerReady" });},[publishRef, onRefReadCanvasWidth, onRefReadCanvas, publish]