You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When you check the official documentation of NextJS, you can find the following illustration.
According to the illustration, Request Memoization is applied before DataCache, meaning that if memoization occurs, cacheHandler is not accessed.
However, the actual implementation is structured as follows:
patchFetch(dedupeFetch(fetch))
This means that DataCache is checked and accessed before Request Memoization, which differs from what is explained in the official documentation.
Is this behavior intentional?
I think it should be applied as follows to work as the illustration shows.
dedupeFetch(patchFetch(fetch))
Beta Was this translation helpful? Give feedback.
All reactions