Skip to content

Commit

Permalink
Pass secret in ReactControlledValuePropTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Jan 31, 2017
1 parent 62f0fbf commit f1c028f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
'use strict';

var React = require('React');
var ReactPropTypesSecret = require('ReactPropTypesSecret');

var warning = require('warning');

Expand Down Expand Up @@ -79,6 +80,8 @@ var ReactControlledValuePropTypes = {
propName,
tagName,
'prop',
null,
ReactPropTypesSecret,
);
}
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
Expand Down

0 comments on commit f1c028f

Please sign in to comment.