Does the prefetch cache use an LRU? #85575
Unanswered
salazarm
asked this question in
App Router
Replies: 1 comment 4 replies
-
|
In what Next.js version are you on? And how did you arrive to the memory leak conclusion? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm prefetching a lot of dynamic routes in my app as an optimization but I think it's causing a memory leak because the cache grows infinitely? Is there a way to set a max size? Or maybe this isn't true? Anyone know? I'm using
router.prefetch(url)Beta Was this translation helpful? Give feedback.
All reactions