Initial boiler plate project

This commit is contained in:
2024-09-24 03:52:46 +00:00
parent 6120b2d6c3
commit 154b93e267
10034 changed files with 2079352 additions and 2 deletions

View File

@ -0,0 +1,19 @@
"use client";
import { jsx as _jsx } from "react/jsx-runtime";
import { createDynamicallyTrackedSearchParams } from "./search-params";
export function ClientPageRoot(param) {
let { Component, props } = param;
// We expect to be passed searchParams but even if we aren't we can construct one from
// an empty object. We only do this if we are in a static generation as a performance
// optimization. Ideally we'd unconditionally construct the tracked params but since
// this creates a proxy which is slow and this would happen even for client navigations
// that are done entirely dynamically and we know there the dynamic tracking is a noop
// in this dynamic case we can safely elide it.
props.searchParams = createDynamicallyTrackedSearchParams(props.searchParams || {});
return /*#__PURE__*/ _jsx(Component, {
...props
});
}
//# sourceMappingURL=client-page.js.map