Skip to content

Build your personal knowledge base with Trilium Notes

chore(standalone/setup): replace properly for hot reload

Elian Doran4dbaadf9cc15
diff --git a/apps/client/src/setup.tsx b/apps/client/src/setup.tsx
index 8b021527ad..86dda27f99 100644
--- a/apps/client/src/setup.tsx
+++ b/apps/client/src/setup.tsx
@@ -7,7 +7,7 @@ async function main() {
const bodyWrapper = document.createElement("div");
render(<App />, bodyWrapper);
- document.body.appendChild(bodyWrapper);
+ document.body.replaceChildren(bodyWrapper);
}
function App() {