Skip to content

Commit eafc472

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Explicitly set default values for fields of ShadowNodeUpdateInfo (#54194)
Summary: Pull Request resolved: #54194 Explicitly set default values for fields of ShadowNodeUpdateInfo changelog: [internal] internal Reviewed By: cortinico Differential Revision: D84954459 fbshipit-source-id: 0b2fc7d35ec8e515db91f86cea85bb78cf746cd1
1 parent 6237882 commit eafc472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/ReactCommon/react/renderer/uimanager/UIManagerUpdateShadowTree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct ShadowNodeUpdateInfo {
2626
int depth;
2727
std::weak_ptr<const ShadowNode> node;
2828
// populate for node that needs props update
29-
std::optional<folly::dynamic> changedProps;
29+
std::optional<folly::dynamic> changedProps{};
3030
// populate for node that's also a ancestor node for updated nodes
3131
std::vector<int> updatedChildrenIndices{};
3232
};

0 commit comments

Comments
 (0)