@samitouri / QOS-React-2 / commits / f5a0d667a5

Add version to legacy factory monitoring

Sebastian Markbage committed Aug 29, 2014 at 08:50 UTC f5a0d667a53d732e8ec711c42e3fcd8bec38983d
1 file changed +1 -1
src/core/ReactLegacyDescriptor.js
+1 -1
@@ -44,7 +44,7 @@ function warnForLegacyFactoryCall() {
44 name + ' is calling a React component directly. ' +
45 'Use a factory or JSX instead. See: http://fb.me/react-legacyfactory'
46 );
47 - monitorCodeUse('react_legacy_factory_call', { name: name });
47 + monitorCodeUse('react_legacy_factory_call', { version: 1, name: name });
48 }
49
50 function warnForPlainFunctionType(type) {