Skip to content

Commit 267c0f5

Browse files
committed
move parent vs owner into DeepDive
1 parent 6f983c3 commit 267c0f5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/content/reference/react/captureOwnerStack.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ Outside of development builds, `null` is returned.
6060

6161
- Owner Stacks are only available in development. `captureOwnerStack` will always return `null` outside of development.
6262

63-
## Owner Stack vs Component Stack {/*owner-stack-vs-component-stack*/}
63+
<DeepDive>
6464

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).
6668

6769
For example, consider the following code:
6870

@@ -130,6 +132,8 @@ Neither `App` nor the DOM components (e.g. `fieldset`) are considered Owners in
130132

131133
Neither `Navigation` nor `legend` are in the stack at all since it's only a sibling to a node containing `<SubComponent />`.
132134

135+
</DeepDive>
136+
133137
## Usage {/*usage*/}
134138

135139
### Expanding error stacks {/*expanding-error-stacks*/}

0 commit comments

Comments
 (0)