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

Function shouldIgnoreAttribute

code/composition/public/app.js:4187–4198  ·  view source on GitHub ↗
(name, propertyInfo, isCustomComponentTag)

Source from the content-addressed store, hash-verified

4185}
4186
4187function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
4188 if (propertyInfo !== null) {
4189 return propertyInfo.type === RESERVED;
4190 }
4191 if (isCustomComponentTag) {
4192 return false;
4193 }
4194 if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
4195 return true;
4196 }
4197 return false;
4198}
4199
4200function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
4201 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