You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/reference/react/captureOwnerStack.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,9 +60,11 @@ Outside of development builds, `null` is returned.
60
60
61
61
- Owner Stacks are only available in development. `captureOwnerStack` will always return `null` outside of development.
62
62
63
-
## Owner Stack vs Component Stack {/*owner-stack-vs-component-stack*/}
63
+
<DeepDive>
64
64
65
-
The Owner Stack is different from the Component Stack available error handlers like [`errorInfo.componentStack` in `onUncaughtError`](/reference/react-dom/client/hydrateRoot#show-a-dialog-for-uncaught-errors).
65
+
#### Owner Stack vs Component Stack {/*owner-stack-vs-component-stack*/}
66
+
67
+
The Owner Stack is different from the Component Stack available in React error handlers like [`errorInfo.componentStack` in `onUncaughtError`](/reference/react-dom/client/hydrateRoot#show-a-dialog-for-uncaught-errors).
66
68
67
69
For example, consider the following code:
68
70
@@ -130,6 +132,8 @@ Neither `App` nor the DOM components (e.g. `fieldset`) are considered Owners in
130
132
131
133
Neither `Navigation` nor `legend` are in the stack at all since it's only a sibling to a node containing `<SubComponent />`.
0 commit comments