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

Docs: Where does react cache come from? #42684

Closed
marcospassos opened this issue Nov 9, 2022 · 5 comments
Closed

Docs: Where does react cache come from? #42684

marcospassos opened this issue Nov 9, 2022 · 5 comments
Labels
Documentation Related to Next.js' official documentation.

Comments

@marcospassos
Copy link

marcospassos commented Nov 9, 2022

What is the improvement or update you wish to see?

The docs mention using a cache function from the react package:
image

In which version was it introduced? I can't find any resource about this function.

Is there any context that might help us understand?

Next 13

Does the docs page already exist? Please link to it.

https://beta.nextjs.org/docs/data-fetching/caching#preload-pattern-with-cache

@marcospassos marcospassos added the Documentation Related to Next.js' official documentation. label Nov 9, 2022
@marcospassos marcospassos changed the title Docs: Where does react cache came from? Docs: Where does react cache come from? Nov 9, 2022
@marcospassos
Copy link
Author

marcospassos commented Nov 9, 2022

Ok, it's not currently supported by react, but actually added through module augmentation by next.

@joaopaulomoraes
Copy link

Anyway this is not clear in the doc 🤔

@leerob
Copy link
Member

leerob commented Nov 10, 2022

It's an experimental feature still: facebook/react#25506

@joaopaulomoraes
Copy link

Thanks for the reference! ⚛️

@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

No branches or pull requests

3 participants