1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 14:28:04 +00:00
_/vite-ssg/renderer/_default.page.client.ts

9 lines
328 B
TypeScript
Raw Normal View History

2022-01-22 14:16:50 +00:00
import { hydrate as solidHydrate } from "solid-js/web";
2021-10-12 19:21:49 +09:00
import { getPage } from "vite-plugin-ssr/client";
import type { PageContextBuiltInClient } from "vite-plugin-ssr/types";
export async function hydrate() {
const pageContext = await getPage<PageContextBuiltInClient>();
2022-01-22 14:16:50 +00:00
solidHydrate(pageContext.Page, document.body);
2021-10-12 19:21:49 +09:00
}