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

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

Open
bondz opened this issue Nov 4, 2024 · 0 comments

Comments

@bondz
Copy link
Contributor

bondz commented Nov 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant