next.js icon indicating copy to clipboard operation
next.js copied to clipboard

Docs: Clarify where `notFound()` can be used.

Open kevinmitch14 opened this issue 2 years ago • 0 comments

What is the improvement or update you wish to see?

It is unclear where notFound() can be called. Is it safe to use this in a server action for example?

Is there any context that might help us understand?

For reference the redirect() and permanentRedirect() pages state where they can be called. https://nextjs.org/docs/app/api-reference/functions/permanentRedirect https://nextjs.org/docs/app/api-reference/functions/redirect

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/app/api-reference/functions/not-found

kevinmitch14 avatar Feb 01 '24 20:02 kevinmitch14