Commit 1ae0a84
authored
Use underscore instead of « » for useId algorithm (#33422)
Alternative to #33421. The difference is that this also adds an
underscore between the "R" and the ID.
The reason we wanted to use special characters is because we use the
full spectrum of A-Z 0-9 in our ID generation so we can basically
collide with any common word (or anyone using a similar algorithm,
base64 or even base16). It's a little less likely that someone would put
`_R_` specifically unless you generate like two IDs separated by
underscore.
1 parent 2b4064e commit 1ae0a84
File tree
22 files changed
+85
-96
lines changed- packages
- react-client/src/__tests__
- react-debug-tools/src/__tests__
- react-dom-bindings/src/server
- fizz-instruction-set
- react-dom/src/__tests__
- react-reconciler/src
- react-server-dom-fb/src/__tests__
- react-server-dom-webpack/src/__tests__
- react-server/src
22 files changed
+85
-96
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1957 | 1957 | | |
1958 | 1958 | | |
1959 | 1959 | | |
1960 | | - | |
1961 | | - | |
| 1960 | + | |
| 1961 | + | |
1962 | 1962 | | |
1963 | 1963 | | |
1964 | 1964 | | |
| |||
1981 | 1981 | | |
1982 | 1982 | | |
1983 | 1983 | | |
1984 | | - | |
1985 | | - | |
| 1984 | + | |
| 1985 | + | |
1986 | 1986 | | |
1987 | 1987 | | |
1988 | 1988 | | |
| |||
2021 | 2021 | | |
2022 | 2022 | | |
2023 | 2023 | | |
2024 | | - | |
2025 | | - | |
| 2024 | + | |
| 2025 | + | |
2026 | 2026 | | |
2027 | 2027 | | |
2028 | 2028 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1553 | 1553 | | |
1554 | 1554 | | |
1555 | 1555 | | |
1556 | | - | |
| 1556 | + | |
1557 | 1557 | | |
1558 | 1558 | | |
1559 | 1559 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
1085 | | - | |
| 1085 | + | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
| |||
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
1094 | | - | |
| 1094 | + | |
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
| |||
5415 | 5415 | | |
5416 | 5416 | | |
5417 | 5417 | | |
5418 | | - | |
| 5418 | + | |
5419 | 5419 | | |
5420 | 5420 | | |
5421 | 5421 | | |
| |||
5433 | 5433 | | |
5434 | 5434 | | |
5435 | 5435 | | |
5436 | | - | |
| 5436 | + | |
5437 | 5437 | | |
5438 | 5438 | | |
5439 | 5439 | | |
| |||
5448 | 5448 | | |
5449 | 5449 | | |
5450 | 5450 | | |
5451 | | - | |
| 5451 | + | |
5452 | 5452 | | |
5453 | 5453 | | |
5454 | 5454 | | |
| |||
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3587 | 3587 | | |
3588 | 3588 | | |
3589 | 3589 | | |
3590 | | - | |
| 3590 | + | |
3591 | 3591 | | |
3592 | 3592 | | |
3593 | 3593 | | |
| |||
4197 | 4197 | | |
4198 | 4198 | | |
4199 | 4199 | | |
4200 | | - | |
| 4200 | + | |
4201 | 4201 | | |
4202 | 4202 | | |
4203 | 4203 | | |
| |||
4284 | 4284 | | |
4285 | 4285 | | |
4286 | 4286 | | |
4287 | | - | |
| 4287 | + | |
4288 | 4288 | | |
4289 | 4289 | | |
4290 | 4290 | | |
| |||
4523 | 4523 | | |
4524 | 4524 | | |
4525 | 4525 | | |
4526 | | - | |
| 4526 | + | |
4527 | 4527 | | |
4528 | 4528 | | |
4529 | 4529 | | |
4530 | | - | |
| 4530 | + | |
4531 | 4531 | | |
4532 | 4532 | | |
4533 | 4533 | | |
| |||
6519 | 6519 | | |
6520 | 6520 | | |
6521 | 6521 | | |
6522 | | - | |
| 6522 | + | |
6523 | 6523 | | |
6524 | 6524 | | |
6525 | 6525 | | |
6526 | | - | |
| 6526 | + | |
6527 | 6527 | | |
6528 | 6528 | | |
6529 | 6529 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
| 527 | + | |
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
| 531 | + | |
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
| 551 | + | |
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
0 commit comments