Initial boiler plate project
This commit is contained in:
19
node_modules/next/dist/esm/client/components/client-page.js
generated
vendored
Normal file
19
node_modules/next/dist/esm/client/components/client-page.js
generated
vendored
Normal 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
|
||||
Reference in New Issue
Block a user