/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-reconciler/src/ReactFiberShellHydration.js
19 строк
642 B
Jan Kassens
Remove Reconciler fork (2/2) (#25775)
02 дек 2022, 07:19
Не верифицирован
02 дек 2022, 07:19
f101c2d
Код
Авторство
О чём код?
/** * 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 {FiberRoot} from './ReactInternalTypes'; import type {RootState} from './ReactFiberRoot'; // This is imported by the event replaying implementation in React DOM. It's // in a separate file to break a circular dependency between the renderer and // the reconciler. export function isRootDehydrated(root: FiberRoot): boolean { const currentState: RootState = root.current.memoizedState; return currentState.isDehydrated; }