Commit 3a758d4
Expose network throttling capability to frontend
Summary:
Expose the simulated network throttling capability to the React Native DevTools frontend by adding an `unstable_networkThrottlingEnabled` boolean to the `ReactNativeApplication.metadataUpdated` CDP event payload. This mirrors the existing `unstable_networkInspectionEnabled`, `unstable_frameRecordingEnabled` etc fields, letting the frontend gate its throttling UI on whether the backend supports `Network.emulateNetworkConditions`.
See also react/react-native-devtools-frontend#279.
Changelog: [Internal]
Differential Revision: D1117255691 parent 8886704 commit 3a758d4
2 files changed
Lines changed: 8 additions & 1 deletion
File tree
- packages/react-native/ReactCommon/jsinspector-modern
- tests
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
331 | 332 | | |
332 | 333 | | |
333 | 334 | | |
| |||
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| 341 | + | |
340 | 342 | | |
341 | 343 | | |
342 | 344 | | |
| |||
372 | 374 | | |
373 | 375 | | |
374 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
375 | 381 | | |
376 | 382 | | |
377 | 383 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
| 364 | + | |
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
| |||
0 commit comments