We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cea8591 commit f85ff44Copy full SHA for f85ff44
lib/util/Components.js
@@ -99,9 +99,12 @@ Components.prototype.list = function() {
99
component = this.get(node);
100
}
101
if (component) {
102
- usedPropTypes[this._getId(component.node)] = (this._list[i].usedPropTypes || []).filter(function(propType) {
+ var newUsedProps = (this._list[i].usedPropTypes || []).filter(function(propType) {
103
return !propType.node || propType.node.kind !== 'init';
104
});
105
+
106
+ var componentId = this._getId(component.node);
107
+ usedPropTypes[componentId] = (usedPropTypes[componentId] || []).concat(newUsedProps);
108
109
110
// Assign used props in not confident components to the parent component
0 commit comments