Next.js Discord

Discord Forum

Does Next.js automatically invalidate cached functions when changing implementations with use cache?

Unanswered
Iridescent shark posted this in #help-forum
Open in Discord
Iridescent sharkOP
I wonder what happens when you cache data using "use cache" and then later change the implementation so that the types no longer match the cached data. Does Next.js automatically detect this and invalidate the cache or will I get a runtime error?

0 Replies