Skip to content

Commit

Permalink
docs: add version history for unstable_cache (#59799)
Browse files Browse the repository at this point in the history
  • Loading branch information
officialrajdeepsingh authored Dec 22, 2023
1 parent a3fb38a commit 3e26253
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/02-app/02-api-reference/04-functions/unstable_cache.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ const data = unstable_cache(fetchData, keyParts, options)()
## Returns

`unstable_cache` returns a function that when invoked, returns a Promise that resolves to the cached data. If the data is not in the cache, the provided function will be invoked, and its result will be cached and returned.

## Version History

| Version | Changes |
| --------- | ---------------------------- |
| `v14.0.0` | `unstable_cache` introduced. |

0 comments on commit 3e26253

Please sign in to comment.