Skip to content
masterclass Buddy

React 19+ · Function

captureOwnerStack

captureOwnerStack() reads the current Owner Stack in development. It returns a string when a stack is available and null when it is not.

Last updated

Syntax

captureOwnerStack()

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Component
  • onCaughtError
  • onRecoverableError
  • onUncaughtError
  • componentStack

Source: captureOwnerStack – React API Reference. Checked 2026-11-03.