Next.js · Senior · Question 56 of 75

How can a 'use cache' component accept children if JSX can't be serialized as a cache key?

Explanation

Pass-through values don't affect the cached result, so the cached shell can wrap dynamic content. The same applies to functions passed through to client components.

Further reading

Problem with a question

Next.js · Senior · question 56

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