perf(webui): batch startup recovery and authenticate before React (#6708)

This commit is contained in:
chengyongru authored and GitHub committed 2026-11-18 22:47:44 +08:00
1 parent 9652302324
commit 273582916b
26 files changed
+537 -330

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import ReactDOM from "react-dom/client";
import App from "./App";
import type { preloadInitialBootstrap } from "./lib/initial-bootstrap";
export function mountWebui(container: HTMLElement, takeInitialBootstrap: ReturnType<typeof preloadInitialBootstrap>) {
/* StrictMode disabled: dev double-invokes state updaters; delta accumulation must stay pure — see useNanobotStream. */
ReactDOM.createRoot(container).render(<App takeInitialBootstrap={takeInitialBootstrap} />);
}