Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Changelog for cache #6757

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 3 additions & 7 deletions src/content/reference/react/cache.md
@@ -1,14 +1,7 @@
---
title: cache
canary: true
---

<Canary>
* `cache` is only for use with [React Server Components](/blog/2023/03/22/react-labs-what-we-have-been-working-on-march-2023#react-server-components). See [frameworks](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) that support React Server Components.

* `cache` is only available in React’s [Canary](/community/versioning-policy#canary-channel) and [experimental](/community/versioning-policy#experimental-channel) channels. Please ensure you understand the limitations before using `cache` in production. Learn more about [React's release channels here](/community/versioning-policy#all-release-channels).
</Canary>

<Intro>

`cache` lets you cache the result of a data fetch or computation.
Expand Down Expand Up @@ -496,3 +489,6 @@ function App() {
}
```

## Changelog {/*changelog*/}

- **19.0.0:** added `cache`
3 changes: 1 addition & 2 deletions src/sidebarReference.json
Expand Up @@ -114,8 +114,7 @@
"routes": [
{
"title": "cache",
"path": "/reference/react/cache",
"canary": true
"path": "/reference/react/cache"
},
{
"title": "createContext",
Expand Down