next
Version:
The React Framework
17 lines (16 loc) • 748 B
TypeScript
/**
* This function can be used to declaratively opt out of static rendering and indicate a particular component should not be cached.
*
* It marks the current scope as dynamic.
*
* - In [non-PPR](https://nextjs.org/docs/app/api-reference/next-config-js/partial-prerendering) cases this will make a static render
* halt and mark the page as dynamic.
* - In PPR cases this will postpone the render at this location.
*
* If we are inside a cache scope then this function does nothing.
*
* @note It expects to be called within App Router and will error otherwise.
*
* Read more: [Next.js Docs: `unstable_noStore`](https://nextjs.org/docs/app/api-reference/functions/unstable_noStore)
*/
export declare function unstable_noStore(): void;