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

Function shouldIgnoreAttribute

code/redux/public/app.js:4300–4311  ·  view source on GitHub ↗
(name, propertyInfo, isCustomComponentTag)

Source from the content-addressed store, hash-verified

4298}
4299
4300function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
4301 if (propertyInfo !== null) {
4302 return propertyInfo.type === RESERVED;
4303 }
4304 if (isCustomComponentTag) {
4305 return false;
4306 }
4307 if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
4308 return true;
4309 }
4310 return false;
4311}
4312
4313function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
4314 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