Closed dbertella closed 7 months ago
It turned out react cache doesn't do what I was expecting to do while using unstable_cache
from next/cache
does. Closing this because it's probably not relevant here, but maybe someone else will stamp on the same issue in the future
Hi all I'm trying to build a small project with next.js and google sheet apis. I want to be able to use my method in different server components and I was hoping I could rely on the cache that react library expose. This is the reference to the documentation https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating
Unfortunately it doesn't seem to be working as expected, every time one of my route containing this function is visited new api calls are fired.
This is what I'm trying to cache with no luck:
If you have any clue or any tip it will be really appreciated