Skip to content

Commit

Permalink
Update unstable_noStore.mdx (vercel#70024)
Browse files Browse the repository at this point in the history
Clarify that `unstable_noStore()` is only for use inside of Server
Components to opt-out of Static Rendering, Client Component though
initially Server Rendered cannot call this function as it is a
Server-side only function

Co-authored-by: JJ Kasper <[email protected]>
  • Loading branch information
PlagueFPS and ijjk authored Sep 12, 2024
1 parent fc2519e commit d41429f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: API Reference for the unstable_noStore function.
version: unstable
---

`unstable_noStore` can be used to declaratively opt out of static rendering and indicate a particular component should not be cached.
`unstable_noStore` can be used to declaratively opt out of static rendering and indicate a particular Server Component should not be cached.

```jsx
import { unstable_noStore as noStore } from 'next/cache';
Expand Down

0 comments on commit d41429f

Please sign in to comment.