Add version to legacy factory monitoring

This commit is contained in:
Sebastian Markbage
2014-08-29 14:34:58 -07:00
committed by Paul O’Shannessy
parent 335e91df71
commit f5a0d667a5
+1 -1
View File
@@ -44,7 +44,7 @@ function warnForLegacyFactoryCall() {
name + ' is calling a React component directly. ' +
'Use a factory or JSX instead. See: http://fb.me/react-legacyfactory'
);
monitorCodeUse('react_legacy_factory_call', { name: name });
monitorCodeUse('react_legacy_factory_call', { version: 1, name: name });
}
function warnForPlainFunctionType(type) {