Commit f686dd27 authored by devjiwonchoi's avatar devjiwonchoi

Clarify ownerStack JSDoc: only available in dev builds

https://github.com/vercel/next.js/pull/89685#discussion_r2850039313
parent 1d121e9a
......@@ -9,7 +9,7 @@ export type GlobalErrorComponent = React.ComponentType<{
reset: () => void
unstable_retry: () => void
componentStack: React.ErrorInfo['componentStack']
/** DEV-only */
/** Only available in dev builds; `null` otherwise. */
ownerStack: ReturnType<typeof React.captureOwnerStack>
}>
......
......@@ -19,7 +19,7 @@ export type ErrorComponent = React.ComponentType<{
reset: () => void
unstable_retry: () => void
componentStack: React.ErrorInfo['componentStack']
/** DEV-only */
/** Only available in dev builds; `null` otherwise. */
ownerStack: ReturnType<typeof React.captureOwnerStack>
}>
......
......@@ -18,7 +18,7 @@ type AppDevOverlayErrorBoundaryProps = {
type AppDevOverlayErrorBoundaryState = {
reactError: unknown
componentStack: React.ErrorInfo['componentStack']
/** DEV-only */
/** Only available in dev builds; `null` otherwise. */
ownerStack: ReturnType<typeof React.captureOwnerStack>
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment