@samitouri / QOS-React-2 / commits / 87ae75b33f

[Perf Tracks] Use minus (`-`) instead of en dash for removed props (#35649)

Sebastian "Sebbie" Silbermann committed Jan 28, 2026 at 12:14 UTC 87ae75b33f71eb673c55ddb3a147a9e58b7d05bd
2 files changed +4 -4
packages/react-reconciler/src/__tests__/ReactPerformanceTrack-test.js
+3 -3
@@ -231,7 +231,7 @@ describe('ReactPerformanceTracks', () => {
231 properties: [
232 ['Changed Props', ''],
233 ['  data', ''],
234 - ['–   buffer', 'null'],
234 + ['-   buffer', 'null'],
235 ['+   buffer', 'Uint8Array'],
236 ['+     0', '0'],
237 ['+     1', '0'],
@@ -422,7 +422,7 @@ describe('ReactPerformanceTracks', () => {
422 color: 'error',
423 properties: [
424 ['Changed Props', ''],
425 - ['– value', '1'],
425 + ['- value', '1'],
426 ['+ value', '2'],
427 ],
428 tooltipText: 'Left',
@@ -510,7 +510,7 @@ describe('ReactPerformanceTracks', () => {
510 ['  data', ''],
511 ['    deeply', ''],
512 ['      nested', ''],
513 - ['–       numbers', 'Array'],
513 + ['-       numbers', 'Array'],
514 ['+       numbers', 'Array'],
515 ],
516 tooltipText: 'App',
packages/shared/ReactPerformanceTrackProperties.js
+1 -1
@@ -279,7 +279,7 @@ export function addValueToProperties(
279 properties.push([prefix + '\xa0\xa0'.repeat(indent) + propertyName, desc]);
280 }
281
282 -const REMOVED = '\u2013\xa0';
282 +const REMOVED = '-\xa0';
283 const ADDED = '+\xa0';
284 const UNCHANGED = '\u2007\xa0';
285