fix hmr issue

This commit is contained in:
Philipinho
2026-02-22 07:48:21 +00:00
parent 9eeb28bb5b
commit 80b6ab13f3
+2 -3
View File
@@ -42,9 +42,8 @@ if (isCloud() && isPostHogEnabled) {
}); });
} }
const root = ReactDOM.createRoot( const container = document.getElementById("root") as HTMLElement;
document.getElementById("root") as HTMLElement, const root = (container as any).__reactRoot ??= ReactDOM.createRoot(container);
);
root.render( root.render(
<BrowserRouter> <BrowserRouter>