dillon1000/react

Commit

Performance Tracks: log properties diff for renders in DEV if no console task available (#34370)

React Native doesn't support `console.createTask` yet, but it does
support `performance.measure` and extensibility APIs for Performance
panel, including `detail.devtools` field.

Previously, this logic was gated with `if (__DEV__ && debugTask)`, now
`debugTask` is no longer required to log render. If there is no console
task, we will just call `performance.measure(...)`. The same pattern is
used in other reporters.
Browse files
Changed paths1 file
First-parent comparison
M packages/react-reconciler/src/ReactFiberPerformanceTrack.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…