Skip to content

Commit fe747a5

Browse files
koba04gaearon
authored andcommitted
Add React.Timeout to getComponentName (facebook#12890)
1 parent 3df1574 commit fe747a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/shared/getComponentName.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
REACT_PROFILER_TYPE,
1919
REACT_PROVIDER_TYPE,
2020
REACT_STRICT_MODE_TYPE,
21+
REACT_TIMEOUT_TYPE,
2122
} from 'shared/ReactSymbols';
2223

2324
function getComponentName(fiber: Fiber): string | null {
@@ -43,6 +44,8 @@ function getComponentName(fiber: Fiber): string | null {
4344
return 'Context.Provider';
4445
case REACT_STRICT_MODE_TYPE:
4546
return 'StrictMode';
47+
case REACT_TIMEOUT_TYPE:
48+
return 'Timeout';
4649
}
4750
if (typeof type === 'object' && type !== null) {
4851
switch (type.$$typeof) {

0 commit comments

Comments
 (0)