Skip to content

Commit df72f66

Browse files
committed
Remove deprecated methods from react-is
1 parent 3d6fcf9 commit df72f66

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

packages/react-is/src/ReactIs.js

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -78,36 +78,6 @@ export const SuspenseList = REACT_SUSPENSE_LIST_TYPE;
7878

7979
export {isValidElementType};
8080

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-
}
11181
export function isContextConsumer(object: any): boolean {
11282
return typeOf(object) === REACT_CONTEXT_TYPE;
11383
}

0 commit comments

Comments
 (0)