File tree 1 file changed +0
-30
lines changed 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -78,36 +78,6 @@ export const SuspenseList = REACT_SUSPENSE_LIST_TYPE;
78
78
79
79
export { isValidElementType } ;
80
80
81
- let hasWarnedAboutDeprecatedIsAsyncMode = false ;
82
- let hasWarnedAboutDeprecatedIsConcurrentMode = false ;
83
-
84
- // AsyncMode should be deprecated
85
- export function isAsyncMode ( object : any ) : boolean {
86
- if ( __DEV__ ) {
87
- if ( ! hasWarnedAboutDeprecatedIsAsyncMode ) {
88
- hasWarnedAboutDeprecatedIsAsyncMode = true ;
89
- // Using console['warn'] to evade Babel and ESLint
90
- console [ 'warn' ] (
91
- 'The ReactIs.isAsyncMode() alias has been deprecated, ' +
92
- 'and will be removed in React 18+.' ,
93
- ) ;
94
- }
95
- }
96
- return false ;
97
- }
98
- export function isConcurrentMode ( object : any ) : boolean {
99
- if ( __DEV__ ) {
100
- if ( ! hasWarnedAboutDeprecatedIsConcurrentMode ) {
101
- hasWarnedAboutDeprecatedIsConcurrentMode = true ;
102
- // Using console['warn'] to evade Babel and ESLint
103
- console [ 'warn' ] (
104
- 'The ReactIs.isConcurrentMode() alias has been deprecated, ' +
105
- 'and will be removed in React 18+.' ,
106
- ) ;
107
- }
108
- }
109
- return false ;
110
- }
111
81
export function isContextConsumer ( object : any ) : boolean {
112
82
return typeOf ( object ) === REACT_CONTEXT_TYPE ;
113
83
}
You can’t perform that action at this time.
0 commit comments