securityos/node_modules/next/dist/esm/client/components/searchparams-bailout-proxy.js

13 lines
472 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import { staticGenerationBailout } from "./static-generation-bailout";
export function createSearchParamsBailoutProxy() {
return new Proxy({}, {
get (_target, prop) {
// React adds some properties on the object when serializing for client components
if (typeof prop === "string") {
staticGenerationBailout("searchParams." + prop);
}
}
});
}
//# sourceMappingURL=searchparams-bailout-proxy.js.map