@@ -166,7 +166,8 @@ describe('ReactDOMConsoleErrorReporting', () => {
166
166
} ) ,
167
167
] ,
168
168
[
169
- // TODO: This is duplicated only with createRoot. Why?
169
+ // This is only duplicated with createRoot
170
+ // because it retries once with a sync render.
170
171
expect . objectContaining ( {
171
172
message : 'Boom' ,
172
173
} ) ,
@@ -181,7 +182,8 @@ describe('ReactDOMConsoleErrorReporting', () => {
181
182
} ) ,
182
183
] ,
183
184
[
184
- // TODO: This is duplicated only with createRoot. Why?
185
+ // This is only duplicated with createRoot
186
+ // because it retries once with a sync render.
185
187
expect . stringContaining ( 'Error: Uncaught [Error: Boom]' ) ,
186
188
expect . objectContaining ( {
187
189
message : 'Boom' ,
@@ -246,7 +248,8 @@ describe('ReactDOMConsoleErrorReporting', () => {
246
248
} ) ,
247
249
] ,
248
250
[
249
- // TODO: This is duplicated only with createRoot. Why?
251
+ // This is only duplicated with createRoot
252
+ // because it retries once with a sync render.
250
253
expect . objectContaining ( {
251
254
message : 'Boom' ,
252
255
} ) ,
@@ -261,7 +264,8 @@ describe('ReactDOMConsoleErrorReporting', () => {
261
264
} ) ,
262
265
] ,
263
266
[
264
- // TODO: This is duplicated only with createRoot. Why?
267
+ // This is only duplicated with createRoot
268
+ // because it retries once with a sync render.
265
269
expect . stringContaining ( 'Error: Uncaught [Error: Boom]' ) ,
266
270
expect . objectContaining ( {
267
271
message : 'Boom' ,
0 commit comments