/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-reconciler/src/ReactFiberActivityComponent.js
25 строк
966 B
Sebastian Markbåge
Implement Partial Hydration for Activity (#32863)
23 апр 2025, 04:00
Не верифицирован
23 апр 2025, 04:00
3ef31d1
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {ActivityInstance} from './ReactFiberConfig'; import type {CapturedValue} from './ReactCapturedValue'; import type {Lane} from './ReactFiberLane'; import type {TreeContext} from './ReactFiberTreeContext'; // A non-null ActivityState represents a dehydrated Activity boundary. export type ActivityState = { dehydrated: ActivityInstance, treeContext: null | TreeContext, // Represents the lane we should attempt to hydrate a dehydrated boundary at. // OffscreenLane is the default for dehydrated boundaries. // NoLane is the default for normal boundaries, which turns into "normal" pri. retryLane: Lane, // Stashed Errors that happened while attempting to hydrate this boundary. hydrationErrors: Array<CapturedValue<mixed>> | null, };