Next.js · Senior · Question 57 of 75

Why does a 'use cache' function with cacheLife('seconds') end up as a dynamic hole instead of in the prerendered page?

Explanation

Very short-lived data would be outdated right after the build. A stale under 30 seconds is excluded too, since a prefetch would expire before the click.

Further reading

Problem with a question

Next.js · Senior · question 57

Test yourself

Take the Next.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz