MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / shouldIgnoreAttribute

Function shouldIgnoreAttribute

code/new-context-api/public/app.js:3410–3421  ·  view source on GitHub ↗
(name, propertyInfo, isCustomComponentTag)

Source from the content-addressed store, hash-verified

3408}
3409
3410function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
3411 if (propertyInfo !== null) {
3412 return propertyInfo.type === RESERVED;
3413 }
3414 if (isCustomComponentTag) {
3415 return false;
3416 }
3417 if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
3418 return true;
3419 }
3420 return false;
3421}
3422
3423function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
3424 if (propertyInfo !== null && propertyInfo.type === RESERVED) {

Callers 2

setValueForPropertyFunction · 0.70
diffHydratedProperties$1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected