File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ import type {SuspenseInstance} from './ReactFiberHostConfig';
12
12
import { SuspenseComponent , SuspenseListComponent } from 'shared/ReactWorkTags' ;
13
13
import { NoEffect , DidCapture } from 'shared/ReactSideEffectTags' ;
14
14
15
+ // A null SuspenseState represents an unsuspended normal Suspense boundary.
16
+ // A non-null SuspenseState means that it is blocked for one reason or another.
17
+ // - A non-null dehydrated field means it's blocked pending hydration.
18
+ // - A non-null dehydrated field can use isSuspenseInstancePending or
19
+ // isSuspenseInstanceFallback to query the reason for being dehydrated.
20
+ // - A null dehydrated field means it's blocked by something suspending and
21
+ // we're currently showing a fallback instead.
15
22
export type SuspenseState = { |
16
23
// If this boundary is still dehydrated, we store the SuspenseInstance
17
24
// here to indicate that it is dehydrated (flag) and for quick access
You can’t perform that action at this time.
0 commit comments