Next.js · Middle · Question 72 of 75

With Cache Components, why does a form keep its typed text after navigating away and pressing Back?

Explanation

Up to 3 routes are preserved. Transient UI like open dropdowns should be reset in an effect cleanup, or keyed by bfcacheId.

Further reading

Problem with a question

Next.js · Middle · question 72

Test yourself

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

Take this quiz