mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Remove getIsHydrating (#18019)
This commit is contained in:
1 parent
988f4b14ee
commit
a607ea4c42
2 files changed
-8
No files matched your search
-3
@@ -7,7 +7,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import {getIsHydrating} from 'react-reconciler/src/ReactFiberHydrationContext';
|
||||
import {addUserTimingListener} from 'shared/ReactFeatureFlags';
|
||||
|
||||
import ReactDOM from './ReactDOM';
|
||||
@@ -26,8 +25,6 @@ Object.assign(
|
||||
},
|
||||
// Perf experiment
|
||||
addUserTimingListener,
|
||||
|
||||
getIsHydrating,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@@ -484,10 +484,6 @@ function resetHydrationState(): void {
|
||||
isHydrating = false;
|
||||
}
|
||||
|
||||
function getIsHydrating(): boolean {
|
||||
return isHydrating;
|
||||
}
|
||||
|
||||
export {
|
||||
warnIfHydrating,
|
||||
enterHydrationState,
|
||||
@@ -498,5 +494,4 @@ export {
|
||||
prepareToHydrateHostTextInstance,
|
||||
prepareToHydrateHostSuspenseInstance,
|
||||
popHydrationState,
|
||||
getIsHydrating,
|
||||
};
|
||||
Reference in new issue
Block a user