@@ -869,16 +869,15 @@ describe('ReactDOMFizzServer', () => {
869
869
} ) ;
870
870
871
871
// We still can't render it on the client.
872
- expect ( Scheduler ) . toFlushAndYield ( [ ] ) ;
873
- expect ( getVisibleChildren ( container ) ) . toEqual ( < div > Loading...</ div > ) ;
874
-
875
- // We now resolve it on the client.
876
- resolveText ( 'Hello' ) ;
877
-
878
872
expect ( Scheduler ) . toFlushAndYield ( [
879
873
'The server could not finish this Suspense boundary, likely due to an ' +
880
874
'error during server rendering. Switched to client rendering.' ,
881
875
] ) ;
876
+ expect ( getVisibleChildren ( container ) ) . toEqual ( < div > Loading...</ div > ) ;
877
+
878
+ // We now resolve it on the client.
879
+ resolveText ( 'Hello' ) ;
880
+ Scheduler . unstable_flushAll ( ) ;
882
881
883
882
// The client rendered HTML is now in place.
884
883
expect ( getVisibleChildren ( container ) ) . toEqual (
@@ -2189,7 +2188,10 @@ describe('ReactDOMFizzServer', () => {
2189
2188
} ,
2190
2189
) ;
2191
2190
2191
+ // Disabled because of a WWW late mutations regression.
2192
+ // We may want to re-enable this if we figure out why.
2192
2193
// @gate experimental
2194
+ // @gate FIXME
2193
2195
it ( 'does not recreate the fallback if server errors and hydration suspends' , async ( ) => {
2194
2196
let isClient = false ;
2195
2197
@@ -2268,7 +2270,10 @@ describe('ReactDOMFizzServer', () => {
2268
2270
) ;
2269
2271
} ) ;
2270
2272
2273
+ // Disabled because of a WWW late mutations regression.
2274
+ // We may want to re-enable this if we figure out why.
2271
2275
// @gate experimental
2276
+ // @gate FIXME
2272
2277
it (
2273
2278
'does not recreate the fallback if server errors and hydration suspends ' +
2274
2279
'and root receives a transition' ,
@@ -2364,7 +2369,10 @@ describe('ReactDOMFizzServer', () => {
2364
2369
} ,
2365
2370
) ;
2366
2371
2372
+ // Disabled because of a WWW late mutations regression.
2373
+ // We may want to re-enable this if we figure out why.
2367
2374
// @gate experimental
2375
+ // @gate FIXME
2368
2376
it (
2369
2377
'recreates the fallback if server errors and hydration suspends but ' +
2370
2378
'client receives new props' ,
@@ -2542,25 +2550,25 @@ describe('ReactDOMFizzServer', () => {
2542
2550
} ,
2543
2551
} ) ;
2544
2552
2545
- // An error happened but instead of surfacing it to the UI, we suspended.
2546
- expect ( Scheduler ) . toFlushAndYield ( [ ] ) ;
2553
+ // An error logged but instead of surfacing it to the UI, we switched
2554
+ // to client rendering.
2555
+ expect ( Scheduler ) . toFlushAndYield ( [
2556
+ 'Hydration error' ,
2557
+ 'There was an error while hydrating this Suspense boundary. Switched ' +
2558
+ 'to client rendering.' ,
2559
+ ] ) ;
2547
2560
expect ( getVisibleChildren ( container ) ) . toEqual (
2548
2561
< div >
2549
2562
< span />
2550
- < span > Yay! </ span >
2563
+ Loading...
2551
2564
< span />
2552
2565
</ div > ,
2553
2566
) ;
2554
2567
2555
2568
await act ( async ( ) => {
2556
2569
resolveText ( 'Yay!' ) ;
2557
2570
} ) ;
2558
- expect ( Scheduler ) . toFlushAndYield ( [
2559
- 'Yay!' ,
2560
- 'Hydration error' ,
2561
- 'There was an error while hydrating this Suspense boundary. Switched ' +
2562
- 'to client rendering.' ,
2563
- ] ) ;
2571
+ expect ( Scheduler ) . toFlushAndYield ( [ 'Yay!' ] ) ;
2564
2572
expect ( getVisibleChildren ( container ) ) . toEqual (
2565
2573
< div >
2566
2574
< span />
0 commit comments