Skip to content

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.

Synchronize initial state of client stores (#960)

Bogdan Chadkin3e442bb1f082
diff --git a/apps/designer/app/shared/sync/sync-stores.ts b/apps/designer/app/shared/sync/sync-stores.ts
index c077ddef3d..25abbb4e3f 100644
--- a/apps/designer/app/shared/sync/sync-stores.ts
+++ b/apps/designer/app/shared/sync/sync-stores.ts
@@ -170,6 +170,12 @@ export const useCanvasStore = (publish: Publish) => {
value: container.get(),
});
}
+ for (const [namespace, store] of clientStores) {
+ data.push({
+ namespace,
+ value: store.get(),
+ });
+ }
publish({
type: "sendStoreData",
payload: {