Skip to content

[Suggestion]: A note should be added to react cache to mention that it won't "cache" values in a server action #7278

Description

@bondz

Summary

React cache doesn't cache values in a server action.

Page

https://react.dev/reference/react/cache

Details

Multiple calls to a cache'd function would return a fresh call. This is reasonable but I think it needs a callout in the docs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions