mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Remove dead code
This commit is contained in:
@@ -26,17 +26,9 @@ export default function getData(internalInstance: InternalInstance): FiberData {
|
||||
type = ElementTypeHostComponent;
|
||||
displayName = elementType;
|
||||
} else if (typeof elementType === 'function') {
|
||||
// TODO Can we differentiate between function and class component types?
|
||||
// Dan said _compositeType tells you PureClass, ImpureClass, StatelessFunctional but it was only added in v14
|
||||
// getPublicInstance() returns null for function components
|
||||
// TODO: detect function components.
|
||||
type = ElementTypeClass;
|
||||
displayName = getDisplayName(elementType);
|
||||
} else if (typeof internalInstance._stringText === 'string') {
|
||||
// ...
|
||||
} else {
|
||||
// TODO What kind of case does this cover?
|
||||
console.log('what is this type?');
|
||||
displayName = getDisplayName(elementType);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user