/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v18.2.0
packages/react/src/ReactCurrentActQueue.js
20 строк
504 B
Andrew Clark
Support disabling spurious act warnings with a global environment flag (#22561)
18 окт 2021, 18:27
Не верифицирован
18 окт 2021, 18:27
163e81c
Код
Авторство
О чём код?
/** * 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 */ type RendererTask = boolean => RendererTask | null; const ReactCurrentActQueue = { current: (null: null | Array<RendererTask>), // Used to reproduce behavior of `batchedUpdates` in legacy mode. isBatchingLegacy: false, didScheduleLegacyUpdate: false, }; export default ReactCurrentActQueue;