UNPKG

next

Version:

The React Framework

15 lines (14 loc) • 821 B
import { staticGenerationAsyncStorage } from "../../../client/components/static-generation-async-storage.external"; import { staticGenerationBailout } from "../../../client/components/static-generation-bailout"; export function unstable_noStore() { const staticGenerationStore = staticGenerationAsyncStorage.getStore(); if (staticGenerationStore == null ? void 0 : staticGenerationStore.isUnstableCacheCallback) { // if called within a next/cache call, we want to cache the result // and defer to the next/cache call to handle how to cache the result. return; } staticGenerationBailout("unstable_noStore", { link: "https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering" }); } //# sourceMappingURL=unstable-no-store.js.map