clearNestedProperty() — react Function Reference
Architecture documentation for the clearNestedProperty() function in ReactNativeAttributePayload.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD ea9f62a5_988f_c1db_f298_cf0ee0a3d31e["clearNestedProperty()"] 3429d3f6_3e01_954f_bb31_157d6bedf858["ReactNativeAttributePayload.js"] ea9f62a5_988f_c1db_f298_cf0ee0a3d31e -->|defined in| 3429d3f6_3e01_954f_bb31_157d6bedf858 ded3bedf_290c_dc96_953f_83eac8b40e92["diffNestedArrayProperty()"] ded3bedf_290c_dc96_953f_83eac8b40e92 -->|calls| ea9f62a5_988f_c1db_f298_cf0ee0a3d31e 09e35162_fc97_6f1c_4f2a_776eeef412d0["diffProperties()"] 09e35162_fc97_6f1c_4f2a_776eeef412d0 -->|calls| ea9f62a5_988f_c1db_f298_cf0ee0a3d31e d37685ea_267f_e11c_6b6b_ddc4438e6233["clearProperties()"] ea9f62a5_988f_c1db_f298_cf0ee0a3d31e -->|calls| d37685ea_267f_e11c_6b6b_ddc4438e6233 style ea9f62a5_988f_c1db_f298_cf0ee0a3d31e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-native-renderer/src/ReactNativeAttributePayload.js lines 238–261
function clearNestedProperty(
updatePayload: null | Object,
prevProp: NestedNode,
validAttributes: AttributeConfiguration,
): null | Object {
if (!prevProp) {
return updatePayload;
}
if (!isArray(prevProp)) {
// Add each property of the leaf.
return clearProperties(updatePayload, prevProp, validAttributes);
}
for (let i = 0; i < prevProp.length; i++) {
// Add all the properties of the array.
updatePayload = clearNestedProperty(
updatePayload,
prevProp[i],
validAttributes,
);
}
return updatePayload;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does clearNestedProperty() do?
clearNestedProperty() is a function in the react codebase, defined in packages/react-native-renderer/src/ReactNativeAttributePayload.js.
Where is clearNestedProperty() defined?
clearNestedProperty() is defined in packages/react-native-renderer/src/ReactNativeAttributePayload.js at line 238.
What does clearNestedProperty() call?
clearNestedProperty() calls 1 function(s): clearProperties.
What calls clearNestedProperty()?
clearNestedProperty() is called by 2 function(s): diffNestedArrayProperty, diffProperties.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free