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

Function shouldIgnoreAttribute

code/communication/public/app.js:4084–4095  ·  view source on GitHub ↗
(name, propertyInfo, isCustomComponentTag)

Source from the content-addressed store, hash-verified

4082}
4083
4084function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
4085 if (propertyInfo !== null) {
4086 return propertyInfo.type === RESERVED;
4087 }
4088 if (isCustomComponentTag) {
4089 return false;
4090 }
4091 if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
4092 return true;
4093 }
4094 return false;
4095}
4096
4097function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
4098 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