/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v18.1.0
packages/react/src/ReactCurrentBatchConfig.js
23 строки
609 B
Luna Ruan
[DevTools][Transition Tracing] onTransitionComplete and onTransitionStart implmentation (#23313)
25 фев 2022, 01:28
Не верифицирован
25 фев 2022, 01:28
42f15b3
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its 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 {BatchConfigTransition} from 'react-reconciler/src/ReactFiberTracingMarkerComponent.new'; type BatchConfig = { transition: BatchConfigTransition | null, }; /** * Keeps track of the current batch's configuration such as how long an update * should suspend for if it needs to. */ const ReactCurrentBatchConfig: BatchConfig = { transition: null, }; export default ReactCurrentBatchConfig;