We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89b8143 commit 3a1a0d1Copy full SHA for 3a1a0d1
lib/util/usedPropTypes.js
@@ -39,7 +39,7 @@ function createPropVariables() {
39
if (!hasBeenWritten) {
40
// copy on write
41
propVariables = new Map(propVariables);
42
- stack[stack.length - 1].propVariables = propVariables;
+ Object.assign(stack[stack.length - 1], { propVariables, hasBeenWritten: true });
43
stack[stack.length - 1].hasBeenWritten = true;
44
}
45
return propVariables.set(name, allNames);
0 commit comments