Add React.Timeout to getComponentName (#12890)
Toru Kobayashi committed
May 24, 2018 at 02:39 UTC
fe747a51c1fdedd87c4e9e281441f2d8d04e02b3
1 file changed
+3
packages/shared/getComponentName.js
+3
@@ -18,6 +18,7 @@ import {
18
REACT_PROFILER_TYPE,
19
REACT_PROVIDER_TYPE,
20
REACT_STRICT_MODE_TYPE,
21
+ REACT_TIMEOUT_TYPE,
22
} from 'shared/ReactSymbols';
23
24
function getComponentName(fiber: Fiber): string | null {
@@ -43,6 +44,8 @@ function getComponentName(fiber: Fiber): string | null {
44
return 'Context.Provider';
45
case REACT_STRICT_MODE_TYPE:
46
return 'StrictMode';
47
+ case REACT_TIMEOUT_TYPE:
48
+ return 'Timeout';
49
}
50
if (typeof type === 'object' && type !== null) {
51
switch (type.$$typeof) {