Server: Phase 2 (REVIEW not respected yet)

This commit is contained in:
Thomas Karner committed 2026-09-21 11:24:43 +02:00
1 parent 5d16ded553
commit 142b47674d
4271 files changed
+1203269

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { Await } from "../awaited.js";
import { RouterProvider } from "../RouterProvider.js";
import { jsx } from "react/jsx-runtime";
import { hydrate } from "@tanstack/router-core/ssr/client";
//#region src/ssr/RouterClient.tsx
var hydrationPromise;
function RouterClient(props) {
hydrationPromise ??= hydrate(props.router).finally(() => window.$_TSR.h());
return /* @__PURE__ */ jsx(Await, {
promise: hydrationPromise,
children: () => /* @__PURE__ */ jsx(RouterProvider, { router: props.router })
});
}
//#endregion
export { RouterClient };
//# sourceMappingURL=RouterClient.js.map