warnForPropDifference() — react Function Reference
Architecture documentation for the warnForPropDifference() function in ReactDOMComponent.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD befb3c8a_925e_b969_cf38_442509b5162d["warnForPropDifference()"] 1e990658_7cea_75be_1f24_2399bdf9f15b["ReactDOMComponent.js"] befb3c8a_925e_b969_cf38_442509b5162d -->|defined in| 1e990658_7cea_75be_1f24_2399bdf9f15b 5a761d37_2f45_4932_7fe3_a541d80b141d["hydrateAttribute()"] 5a761d37_2f45_4932_7fe3_a541d80b141d -->|calls| befb3c8a_925e_b969_cf38_442509b5162d f3d3e586_5458_0eba_fd59_49b6a40ff86b["hydrateBooleanAttribute()"] f3d3e586_5458_0eba_fd59_49b6a40ff86b -->|calls| befb3c8a_925e_b969_cf38_442509b5162d d9024aba_cdc3_95d5_6a11_fa53b54d0173["hydrateOverloadedBooleanAttribute()"] d9024aba_cdc3_95d5_6a11_fa53b54d0173 -->|calls| befb3c8a_925e_b969_cf38_442509b5162d e88b4fe5_6838_d36b_0e11_fd1a074c3de7["hydrateBooleanishAttribute()"] e88b4fe5_6838_d36b_0e11_fd1a074c3de7 -->|calls| befb3c8a_925e_b969_cf38_442509b5162d 3d159227_9c72_8676_0535_57810df5eb7f["hydrateNumericAttribute()"] 3d159227_9c72_8676_0535_57810df5eb7f -->|calls| befb3c8a_925e_b969_cf38_442509b5162d c3dded8f_7b38_376f_3039_0572dd0804b9["hydratePositiveNumericAttribute()"] c3dded8f_7b38_376f_3039_0572dd0804b9 -->|calls| befb3c8a_925e_b969_cf38_442509b5162d d26613be_511f_ca92_6515_bce3e82633a6["hydrateSanitizedAttribute()"] d26613be_511f_ca92_6515_bce3e82633a6 -->|calls| befb3c8a_925e_b969_cf38_442509b5162d 84fbfa5b_7810_e48d_c923_a57422c72f70["hydrateSrcObjectAttribute()"] 84fbfa5b_7810_e48d_c923_a57422c72f70 -->|calls| befb3c8a_925e_b969_cf38_442509b5162d b3ccac7d_1304_9653_2f32_5c5e2bbc637e["diffHydratedCustomComponent()"] b3ccac7d_1304_9653_2f32_5c5e2bbc637e -->|calls| befb3c8a_925e_b969_cf38_442509b5162d 409bfd4f_a0a2_7b82_31de_9321ab006da0["diffHydratedGenericElement()"] 409bfd4f_a0a2_7b82_31de_9321ab006da0 -->|calls| befb3c8a_925e_b969_cf38_442509b5162d 8c4ad254_8dbf_cbef_d7da_cf083fdc32da["normalizeMarkupForTextOrAttribute()"] befb3c8a_925e_b969_cf38_442509b5162d -->|calls| 8c4ad254_8dbf_cbef_d7da_cf083fdc32da style befb3c8a_925e_b969_cf38_442509b5162d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-dom-bindings/src/client/ReactDOMComponent.js lines 216–236
function warnForPropDifference(
propName: string,
serverValue: mixed,
clientValue: mixed,
serverDifferences: {[propName: string]: mixed},
): void {
if (__DEV__) {
if (serverValue === clientValue) {
return;
}
const normalizedClientValue =
normalizeMarkupForTextOrAttribute(clientValue);
const normalizedServerValue =
normalizeMarkupForTextOrAttribute(serverValue);
if (normalizedServerValue === normalizedClientValue) {
return;
}
serverDifferences[propName] = serverValue;
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does warnForPropDifference() do?
warnForPropDifference() is a function in the react codebase, defined in packages/react-dom-bindings/src/client/ReactDOMComponent.js.
Where is warnForPropDifference() defined?
warnForPropDifference() is defined in packages/react-dom-bindings/src/client/ReactDOMComponent.js at line 216.
What does warnForPropDifference() call?
warnForPropDifference() calls 1 function(s): normalizeMarkupForTextOrAttribute.
What calls warnForPropDifference()?
warnForPropDifference() is called by 10 function(s): diffHydratedCustomComponent, diffHydratedGenericElement, hydrateAttribute, hydrateBooleanAttribute, hydrateBooleanishAttribute, hydrateNumericAttribute, hydrateOverloadedBooleanAttribute, hydratePositiveNumericAttribute, and 2 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free