Next.js · Senior · Question 69 of 75

notFound() is called inside a component that streams in a <Suspense> boundary. What does the crawler get?

Explanation

Starting the stream fixes the status code. For a real 404 status, call notFound() before anything streams, e.g. at the top of the page.

Further reading

Problem with a question

Next.js · Senior · question 69

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