Docs: Docs claim that React memoizes fetch results, which I don't see any React docs to support that claim #72983
Unanswered
tehandyb
asked this question in
App Router
Replies: 1 comment 1 reply
-
@tehandyb This is still true (maybe de-duped is the better term here?). It makes sense in App Router, where composability goes down to the component instead of a page, which was the case with Page Router. With the possibly of there being more components using the same fetch, it makes sense to automatically memoize on each React render. I'm not exactly sure where this is located in the React code, but I believe it is in there. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the documentation issue?
https://nextjs.org/docs/13/app/building-your-application/caching
Here the documentation claims that React memoizes the response from the fetch function by extending it. I don't see any React documentation to support that
Is there any context that might help us understand?
I doubt react would extend the fetch function, and have not seen docs to support that
Does the docs page already exist? Please link to it.
https://nextjs.org/docs/13/app/building-your-application/caching
Beta Was this translation helpful? Give feedback.
All reactions