| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | * |
| 7 | * @flow |
| 8 | */ |
| 9 | |
| 10 | import type {ActivityInstance} from './ReactFiberConfig'; |
| 11 | import type {CapturedValue} from './ReactCapturedValue'; |
| 12 | import type {Lane} from './ReactFiberLane'; |
| 13 | import type {TreeContext} from './ReactFiberTreeContext'; |
| 14 | |
| 15 | // A non-null ActivityState represents a dehydrated Activity boundary. |
| 16 | export type ActivityState = { |
| 17 | dehydrated: ActivityInstance, |
| 18 | treeContext: null | TreeContext, |
| 19 | // Represents the lane we should attempt to hydrate a dehydrated boundary at. |
| 20 | // OffscreenLane is the default for dehydrated boundaries. |
| 21 | // NoLane is the default for normal boundaries, which turns into "normal" pri. |
| 22 | retryLane: Lane, |
| 23 | // Stashed Errors that happened while attempting to hydrate this boundary. |
| 24 | hydrationErrors: Array<CapturedValue<mixed>> | null, |
| 25 | }; |