We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecccad6 commit 60cdf05Copy full SHA for 60cdf05
2 files changed
frontend/preview/preview.tsx
@@ -165,7 +165,12 @@ function initPreview() {
165
globalStore.set(getAtoms().fullConfigAtom, {} as FullConfigType);
166
GlobalModel.getInstance().initialize(initOpts);
167
loadFonts();
168
- const root = createRoot(document.getElementById("main")!);
+ const container = document.getElementById("main")!;
169
+ let root = (container as any).__reactRoot;
170
+ if (!root) {
171
+ root = createRoot(container);
172
+ (container as any).__reactRoot = root;
173
+ }
174
root.render(<PreviewRoot />);
175
}
176
frontend/preview/vite.config.ts
@@ -23,6 +23,9 @@ export default defineConfig({
23
react(),
24
tailwindcss(),
25
],
26
+ build: {
27
+ minify: false,
28
+ },
29
server: {
30
port: 7007,
31
},
0 commit comments