generated from erangel1/generic-template
initial commit. phase 1 complete
This commit is contained in:
Generated
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
import { BailoutToCSRError } from "../../shared/lib/lazy-dynamic/bailout-to-csr";
|
||||
import { staticGenerationAsyncStorage } from "./static-generation-async-storage.external";
|
||||
export function bailoutToClientRendering(reason) {
|
||||
const staticGenerationStore = staticGenerationAsyncStorage.getStore();
|
||||
if (staticGenerationStore == null ? void 0 : staticGenerationStore.forceStatic) return;
|
||||
if (staticGenerationStore == null ? void 0 : staticGenerationStore.isStaticGeneration) throw new BailoutToCSRError(reason);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=bailout-to-client-rendering.js.map
|
||||
Reference in New Issue
Block a user