Server: Phase 2 (REVIEW not respected yet)
This commit is contained in:
1 parent
5d16ded553
commit
142b47674d
4271 files changed
+1203269
No files matched your search
+17
@@ -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
|
||||
Reference in new issue
Block a user