mirror of
https://github.com/docmost/docmost.git
synced 2026-08-29 01:37:05 +08:00
fix hmr issue
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user