/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/react/renderer/core/ShadowNodeFragment.cpp
34 строки
802 B
Samuel Susla
delete ShadowNodeFragment::Value (#43962)
08 апр 2024, 16:43
08 апр 2024, 16:43
88b6e11
Код
Авторство
О чём код?
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ShadowNodeFragment.h" namespace facebook::react { #if defined(__clang__) #define NO_DESTROY [[clang::no_destroy]] #else #define NO_DESTROY #endif const Props::Shared& ShadowNodeFragment::propsPlaceholder() { NO_DESTROY static Props::Shared instance; return instance; } const ShadowNode::SharedListOfShared& ShadowNodeFragment::childrenPlaceholder() { NO_DESTROY static ShadowNode::SharedListOfShared instance; return instance; } const State::Shared& ShadowNodeFragment::statePlaceholder() { NO_DESTROY static State::Shared instance; return instance; } } // namespace facebook::react