fix typo in code (#26655)
Summary: This PR only fixes a typo in `ShadowNode.cpp` ## Changelog [Internal] [Fixed] - Fix typo in `ShadowNode.cpp` Pull Request resolved: https://github.com/facebook/react-native/pull/26655 Differential Revision: D17743059 Pulled By: TheSavior fbshipit-source-id: 6bbaf54b712c0a80da8dfafea2634309279a8f21
This commit is contained in:
Родитель
7d8b7ff3aa
Коммит
ae3f7a7616
|
@ -129,11 +129,11 @@ const State::Shared &ShadowNode::getState() const {
|
|||
|
||||
State::Shared ShadowNode::getMostRecentState() const {
|
||||
if (state_) {
|
||||
auto commitedState = state_->getMostRecentState();
|
||||
auto committedState = state_->getMostRecentState();
|
||||
|
||||
// Commited state can be `null` in case if no one node was commited yet;
|
||||
// Committed state can be `null` in case if no one node was committed yet;
|
||||
// in this case we return own `state`.
|
||||
return commitedState ? commitedState : state_;
|
||||
return committedState ? committedState : state_;
|
||||
}
|
||||
|
||||
return ShadowNodeFragment::statePlaceholder();
|
||||
|
|
Загрузка…
Ссылка в новой задаче