mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add version to legacy factory monitoring
This commit is contained in:
committed by
Paul O’Shannessy
parent
335e91df71
commit
f5a0d667a5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user