File tree 2 files changed +14
-16
lines changed
packages/react-reconciler/src 2 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -2216,12 +2216,12 @@ function mountSuspenseFallbackChildren(
2216
2216
supportsPersistence &&
2217
2217
( workInProgress . mode & ConcurrentMode ) === NoMode
2218
2218
) {
2219
- const isHidden = true ;
2220
2219
const offscreenContainer : Fiber = ( primaryChildFragment . child : any ) ;
2221
- const containerProps = {
2222
- hidden : isHidden ,
2220
+
2221
+ const containerProps = getOffscreenContainerProps (
2222
+ 'hidden' ,
2223
2223
primaryChildren ,
2224
- } ;
2224
+ ) ;
2225
2225
offscreenContainer . pendingProps = containerProps ;
2226
2226
offscreenContainer . memoizedProps = containerProps ;
2227
2227
completeSuspendedOffscreenHostContainer ( null , offscreenContainer ) ;
@@ -2373,13 +2373,12 @@ function updateSuspenseFallbackChildren(
2373
2373
// In persistent mode, the offscreen children are wrapped in a host node.
2374
2374
// We need to complete it now, because we're going to skip over its normal
2375
2375
// complete phase and go straight to rendering the fallback.
2376
- const isHidden = true ;
2377
2376
const currentOffscreenContainer = currentPrimaryChildFragment . child ;
2378
2377
const offscreenContainer : Fiber = ( primaryChildFragment . child : any ) ;
2379
- const containerProps = {
2380
- hidden : isHidden ,
2378
+ const containerProps = getOffscreenContainerProps (
2379
+ ' hidden' ,
2381
2380
primaryChildren ,
2382
- } ;
2381
+ ) ;
2383
2382
offscreenContainer . pendingProps = containerProps ;
2384
2383
offscreenContainer . memoizedProps = containerProps ;
2385
2384
completeSuspendedOffscreenHostContainer (
Original file line number Diff line number Diff line change @@ -2216,12 +2216,12 @@ function mountSuspenseFallbackChildren(
2216
2216
supportsPersistence &&
2217
2217
( workInProgress . mode & ConcurrentMode ) === NoMode
2218
2218
) {
2219
- const isHidden = true ;
2220
2219
const offscreenContainer : Fiber = ( primaryChildFragment . child : any ) ;
2221
- const containerProps = {
2222
- hidden : isHidden ,
2220
+
2221
+ const containerProps = getOffscreenContainerProps (
2222
+ 'hidden' ,
2223
2223
primaryChildren ,
2224
- } ;
2224
+ ) ;
2225
2225
offscreenContainer . pendingProps = containerProps ;
2226
2226
offscreenContainer . memoizedProps = containerProps ;
2227
2227
completeSuspendedOffscreenHostContainer ( null , offscreenContainer ) ;
@@ -2373,13 +2373,12 @@ function updateSuspenseFallbackChildren(
2373
2373
// In persistent mode, the offscreen children are wrapped in a host node.
2374
2374
// We need to complete it now, because we're going to skip over its normal
2375
2375
// complete phase and go straight to rendering the fallback.
2376
- const isHidden = true ;
2377
2376
const currentOffscreenContainer = currentPrimaryChildFragment . child ;
2378
2377
const offscreenContainer : Fiber = ( primaryChildFragment . child : any ) ;
2379
- const containerProps = {
2380
- hidden : isHidden ,
2378
+ const containerProps = getOffscreenContainerProps (
2379
+ ' hidden' ,
2381
2380
primaryChildren ,
2382
- } ;
2381
+ ) ;
2383
2382
offscreenContainer . pendingProps = containerProps ;
2384
2383
offscreenContainer . memoizedProps = containerProps ;
2385
2384
completeSuspendedOffscreenHostContainer (
You can’t perform that action at this time.
0 commit comments