/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react/src/ReactOwnerStack.js
23 строки
596 B
Ricky
[flags] remove enableOwnerStacks (#32426)
04 мар 2025, 20:34
Не верифицирован
04 мар 2025, 20:34
e0fe347
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, 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 ReactSharedInternals from 'shared/ReactSharedInternals'; export function captureOwnerStack(): null | string { if (__DEV__) { const getCurrentStack = ReactSharedInternals.getCurrentStack; if (getCurrentStack === null) { return null; } // The current stack will be the owner stack which it is always here. return getCurrentStack(); } return null; }