@@ -530,14 +530,8 @@ describe('ReactIncrementalUpdates', () => {
530
530
Scheduler . unstable_yieldValue ( 'Committed: ' + log ) ;
531
531
if ( log === 'B' ) {
532
532
// Right after B commits, schedule additional updates.
533
- // TODO: Double wrapping is temporary while we remove Scheduler runWithPriority.
534
533
ReactNoop . unstable_runWithPriority ( InputContinuousLanePriority , ( ) =>
535
- Scheduler . unstable_runWithPriority (
536
- Scheduler . unstable_UserBlockingPriority ,
537
- ( ) => {
538
- pushToLog ( 'C' ) ;
539
- } ,
540
- ) ,
534
+ pushToLog ( 'C' ) ,
541
535
) ;
542
536
setLog ( prevLog => prevLog + 'D' ) ;
543
537
}
@@ -556,14 +550,8 @@ describe('ReactIncrementalUpdates', () => {
556
550
await ReactNoop . act ( async ( ) => {
557
551
pushToLog ( 'A' ) ;
558
552
559
- // TODO: Double wrapping is temporary while we remove Scheduler runWithPriority.
560
553
ReactNoop . unstable_runWithPriority ( InputContinuousLanePriority , ( ) =>
561
- Scheduler . unstable_runWithPriority (
562
- Scheduler . unstable_UserBlockingPriority ,
563
- ( ) => {
564
- pushToLog ( 'B' ) ;
565
- } ,
566
- ) ,
554
+ pushToLog ( 'B' ) ,
567
555
) ;
568
556
} ) ;
569
557
expect ( Scheduler ) . toHaveYielded ( [
@@ -595,14 +583,8 @@ describe('ReactIncrementalUpdates', () => {
595
583
Scheduler . unstable_yieldValue ( 'Committed: ' + this . state . log ) ;
596
584
if ( this . state . log === 'B' ) {
597
585
// Right after B commits, schedule additional updates.
598
- // TODO: Double wrapping is temporary while we remove Scheduler runWithPriority.
599
586
ReactNoop . unstable_runWithPriority ( InputContinuousLanePriority , ( ) =>
600
- Scheduler . unstable_runWithPriority (
601
- Scheduler . unstable_UserBlockingPriority ,
602
- ( ) => {
603
- this . pushToLog ( 'C' ) ;
604
- } ,
605
- ) ,
587
+ this . pushToLog ( 'C' ) ,
606
588
) ;
607
589
this . pushToLog ( 'D' ) ;
608
590
}
@@ -622,14 +604,8 @@ describe('ReactIncrementalUpdates', () => {
622
604
623
605
await ReactNoop . act ( async ( ) => {
624
606
pushToLog ( 'A' ) ;
625
- // TODO: Double wrapping is temporary while we remove Scheduler runWithPriority.
626
607
ReactNoop . unstable_runWithPriority ( InputContinuousLanePriority , ( ) =>
627
- Scheduler . unstable_runWithPriority (
628
- Scheduler . unstable_UserBlockingPriority ,
629
- ( ) => {
630
- pushToLog ( 'B' ) ;
631
- } ,
632
- ) ,
608
+ pushToLog ( 'B' ) ,
633
609
) ;
634
610
} ) ;
635
611
expect ( Scheduler ) . toHaveYielded ( [
0 commit comments