Skip to content

Commit d03b037

Browse files
authored
[docs] Add React Suspense panel to React Native DevTools guide (#5317)
1 parent 9e69741 commit d03b037

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎docs/react-native-devtools.md‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ The Memory panel allows you to take a heap snapshot and view the memory usage of
136136

137137
## React DevTools features
138138

139-
In the integrated Components and Profiler panels, you'll find all the features of the [React DevTools](https://react.dev/learn/react-developer-tools) browser extension. These work seamlessly in React Native DevTools.
139+
In the integrated Components, Profiler, and Suspense panels, you'll find all the features of the [React DevTools](https://react.dev/learn/react-developer-tools) browser extension. These work seamlessly in React Native DevTools.
140140

141141
### React Components
142142

@@ -172,6 +172,15 @@ The React Profiler panel allows you to record performance profiles to understand
172172

173173
For more info, see the [original 2018 guide](https://legacy.reactjs.org/blog/2018/09/10/introducing-the-react-profiler.html#reading-performance-data) (note that parts of this may be outdated).
174174

175+
### React Suspense <div className="label primary">Since 0.90</div>
176+
177+
![Selecting a Suspense boundary in the React Suspense panel, alongside a device](/docs/assets/debugging-rndt-react-suspense.jpg)
178+
179+
The React Suspense panel allows you to inspect the [`<Suspense>`](https://react.dev/reference/react/Suspense) boundaries in your app, and see what caused each one to suspend.
180+
181+
- The boundary map lays out each boundary as it appears on screen, and the timeline below it steps through the order in which they revealed their content.
182+
- Select a boundary to see what it was suspended by, such as a `React.lazy()` component or a promise read with `use()`.
183+
175184
## Reconnecting DevTools
176185

177186
Occasionally, DevTools might disconnect from the target device. This can happen if:
141 KB
Loading

0 commit comments

Comments
 (0)