/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v16.13.1
packages/react/src/ReactCurrentBatchConfig.js
20 строк
532 B
Sebastian Markbåge
Add withSuspenseConfig API (#15593)
17 май 2019, 02:51
Не верифицирован
17 май 2019, 02:51
9c6de71
Код
Авторство
О чём код?
/** * 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 {SuspenseConfig} from 'react-reconciler/src/ReactFiberSuspenseConfig'; /** * Keeps track of the current batch's configuration such as how long an update * should suspend for if it needs to. */ const ReactCurrentBatchConfig = { suspense: (null: null | SuspenseConfig), }; export default ReactCurrentBatchConfig;