We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aaa92c commit fd7ab93Copy full SHA for fd7ab93
.changeset/eight-ads-argue.md
@@ -0,0 +1,5 @@
1
+---
2
+"@ensembleui/react-preview": patch
3
4
+
5
+Fix ensemble preview
apps/preview/src/AppPreview.tsx
@@ -125,7 +125,7 @@ export const AppPreview: React.FC<{ db: Firestore }> = ({ db }) => {
125
bypassCache: boolean;
126
screen?: {
127
id: string;
128
- content: string;
+ editorContent: string;
129
};
130
131
if (msg.type === "reload") {
@@ -134,7 +134,7 @@ export const AppPreview: React.FC<{ db: Firestore }> = ({ db }) => {
134
if (msg.screen) {
135
localStorage.setItem(
136
`flutter.${msg.screen.id}`,
137
- msg.screen.content,
+ JSON.stringify(msg.screen.editorContent),
138
);
139
}
140
0 commit comments