@@ -67,7 +67,7 @@ describe('StoreStressConcurrent', () => {
67
67
// 1. Render a normal version of [a, b, c, d, e].
68
68
let container = document . createElement ( 'div' ) ;
69
69
// $FlowFixMe
70
- let root = ReactDOM . unstable_createRoot ( container ) ;
70
+ let root = ReactDOM . createRoot ( container ) ;
71
71
act ( ( ) => root . render ( < Parent > { [ a , b , c , d , e ] } </ Parent > ) ) ;
72
72
expect ( store ) . toMatchInlineSnapshot (
73
73
`
@@ -151,7 +151,7 @@ describe('StoreStressConcurrent', () => {
151
151
// Ensure fresh mount.
152
152
container = document . createElement ( 'div' ) ;
153
153
// $FlowFixMe
154
- root = ReactDOM . unstable_createRoot ( container ) ;
154
+ root = ReactDOM . createRoot ( container ) ;
155
155
156
156
// Verify mounting 'abcde'.
157
157
act ( ( ) => root . render ( < Parent > { cases [ i ] } </ Parent > ) ) ;
@@ -181,7 +181,7 @@ describe('StoreStressConcurrent', () => {
181
181
// There'll be no unmounting until the very end.
182
182
container = document . createElement ( 'div' ) ;
183
183
// $FlowFixMe
184
- root = ReactDOM . unstable_createRoot ( container ) ;
184
+ root = ReactDOM . createRoot ( container ) ;
185
185
for ( let i = 0 ; i < cases . length ; i ++ ) {
186
186
// Verify mounting 'abcde'.
187
187
act ( ( ) => root . render ( < Parent > { cases [ i ] } </ Parent > ) ) ;
@@ -247,7 +247,7 @@ describe('StoreStressConcurrent', () => {
247
247
const snapshots = [ ] ;
248
248
let container = document . createElement ( 'div' ) ;
249
249
// $FlowFixMe
250
- let root = ReactDOM . unstable_createRoot ( container ) ;
250
+ let root = ReactDOM . createRoot ( container ) ;
251
251
for ( let i = 0 ; i < steps . length ; i ++ ) {
252
252
act ( ( ) => root . render ( < Root > { steps [ i ] } </ Root > ) ) ;
253
253
// We snapshot each step once so it doesn't regress.
@@ -320,7 +320,7 @@ describe('StoreStressConcurrent', () => {
320
320
for ( let j = 0 ; j < steps . length ; j ++ ) {
321
321
container = document . createElement ( 'div' ) ;
322
322
// $FlowFixMe
323
- root = ReactDOM . unstable_createRoot ( container ) ;
323
+ root = ReactDOM . createRoot ( container ) ;
324
324
act ( ( ) => root . render ( < Root > { steps [ i ] } </ Root > ) ) ;
325
325
expect ( print ( store ) ) . toMatch ( snapshots [ i ] ) ;
326
326
act ( ( ) => root . render ( < Root > { steps [ j ] } </ Root > ) ) ;
@@ -337,7 +337,7 @@ describe('StoreStressConcurrent', () => {
337
337
for ( let j = 0 ; j < steps . length ; j ++ ) {
338
338
container = document . createElement ( 'div' ) ;
339
339
// $FlowFixMe
340
- root = ReactDOM . unstable_createRoot ( container ) ;
340
+ root = ReactDOM . createRoot ( container ) ;
341
341
act ( ( ) =>
342
342
root . render (
343
343
< Root >
@@ -409,7 +409,7 @@ describe('StoreStressConcurrent', () => {
409
409
const snapshots = [ ] ;
410
410
let container = document . createElement ( 'div' ) ;
411
411
// $FlowFixMe
412
- let root = ReactDOM . unstable_createRoot ( container ) ;
412
+ let root = ReactDOM . createRoot ( container ) ;
413
413
for ( let i = 0 ; i < steps . length ; i ++ ) {
414
414
act ( ( ) =>
415
415
root . render (
@@ -536,7 +536,7 @@ describe('StoreStressConcurrent', () => {
536
536
// Always start with a fresh container and steps[i].
537
537
container = document . createElement ( 'div' ) ;
538
538
// $FlowFixMe
539
- root = ReactDOM . unstable_createRoot ( container ) ;
539
+ root = ReactDOM . createRoot ( container ) ;
540
540
act ( ( ) =>
541
541
root . render (
542
542
< Root >
@@ -582,7 +582,7 @@ describe('StoreStressConcurrent', () => {
582
582
// Always start with a fresh container and steps[i].
583
583
container = document . createElement ( 'div' ) ;
584
584
// $FlowFixMe
585
- root = ReactDOM . unstable_createRoot ( container ) ;
585
+ root = ReactDOM . createRoot ( container ) ;
586
586
act ( ( ) =>
587
587
root . render (
588
588
< Root >
@@ -640,7 +640,7 @@ describe('StoreStressConcurrent', () => {
640
640
// Always start with a fresh container and steps[i].
641
641
container = document . createElement ( 'div' ) ;
642
642
// $FlowFixMe
643
- root = ReactDOM . unstable_createRoot ( container ) ;
643
+ root = ReactDOM . createRoot ( container ) ;
644
644
act ( ( ) =>
645
645
root . render (
646
646
< Root >
@@ -690,7 +690,7 @@ describe('StoreStressConcurrent', () => {
690
690
// Always start with a fresh container and steps[i].
691
691
container = document . createElement ( 'div' ) ;
692
692
// $FlowFixMe
693
- root = ReactDOM . unstable_createRoot ( container ) ;
693
+ root = ReactDOM . createRoot ( container ) ;
694
694
act ( ( ) =>
695
695
root . render (
696
696
< Root >
@@ -744,7 +744,7 @@ describe('StoreStressConcurrent', () => {
744
744
// Always start with a fresh container and steps[i].
745
745
container = document . createElement ( 'div' ) ;
746
746
// $FlowFixMe
747
- root = ReactDOM . unstable_createRoot ( container ) ;
747
+ root = ReactDOM . createRoot ( container ) ;
748
748
act ( ( ) =>
749
749
root . render (
750
750
< Root >
@@ -898,7 +898,7 @@ describe('StoreStressConcurrent', () => {
898
898
const snapshots = [ ] ;
899
899
let container = document . createElement ( 'div' ) ;
900
900
// $FlowFixMe
901
- let root = ReactDOM . unstable_createRoot ( container ) ;
901
+ let root = ReactDOM . createRoot ( container ) ;
902
902
for ( let i = 0 ; i < steps . length ; i ++ ) {
903
903
act ( ( ) =>
904
904
root . render (
@@ -1055,7 +1055,7 @@ describe('StoreStressConcurrent', () => {
1055
1055
// Always start with a fresh container and steps[i].
1056
1056
container = document . createElement ( 'div' ) ;
1057
1057
// $FlowFixMe
1058
- root = ReactDOM . unstable_createRoot ( container ) ;
1058
+ root = ReactDOM . createRoot ( container ) ;
1059
1059
act ( ( ) =>
1060
1060
root . render (
1061
1061
< Root >
@@ -1107,7 +1107,7 @@ describe('StoreStressConcurrent', () => {
1107
1107
// Always start with a fresh container and steps[i].
1108
1108
container = document . createElement ( 'div' ) ;
1109
1109
// $FlowFixMe
1110
- root = ReactDOM . unstable_createRoot ( container ) ;
1110
+ root = ReactDOM . createRoot ( container ) ;
1111
1111
act ( ( ) =>
1112
1112
root . render (
1113
1113
< Root >
@@ -1174,7 +1174,7 @@ describe('StoreStressConcurrent', () => {
1174
1174
// Always start with a fresh container and steps[i].
1175
1175
container = document . createElement ( 'div' ) ;
1176
1176
// $FlowFixMe
1177
- root = ReactDOM . unstable_createRoot ( container ) ;
1177
+ root = ReactDOM . createRoot ( container ) ;
1178
1178
act ( ( ) =>
1179
1179
root . render (
1180
1180
< Root >
@@ -1226,7 +1226,7 @@ describe('StoreStressConcurrent', () => {
1226
1226
// Always start with a fresh container and steps[i].
1227
1227
container = document . createElement ( 'div' ) ;
1228
1228
// $FlowFixMe
1229
- root = ReactDOM . unstable_createRoot ( container ) ;
1229
+ root = ReactDOM . createRoot ( container ) ;
1230
1230
act ( ( ) =>
1231
1231
root . render (
1232
1232
< Root >
@@ -1278,7 +1278,7 @@ describe('StoreStressConcurrent', () => {
1278
1278
// Always start with a fresh container and steps[i].
1279
1279
container = document . createElement ( 'div' ) ;
1280
1280
// $FlowFixMe
1281
- root = ReactDOM . unstable_createRoot ( container ) ;
1281
+ root = ReactDOM . createRoot ( container ) ;
1282
1282
act ( ( ) =>
1283
1283
root . render (
1284
1284
< Root >
0 commit comments