/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
status
packages/react/src/IsSomeRendererActing.js
17 строк
375 B
Sunil Pai
allow nested `act()`s from different renderers (#16039)
03 июл 2019, 00:20
Не верифицирован
03 июл 2019, 00:20
a457e02
Код
Авторство
О чём код?
/** * 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 */ /** * Used by act() to track whether you're inside an act() scope. */ const IsSomeRendererActing = { current: (false: boolean), }; export default IsSomeRendererActing;