Skip to content

Commit

Permalink
Remove getIsHydrating (#18019)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Feb 12, 2020
1 parent 988f4b1 commit a607ea4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions packages/react-dom/src/client/ReactDOMFB.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* @flow
*/

import {getIsHydrating} from 'react-reconciler/src/ReactFiberHydrationContext';
import {addUserTimingListener} from 'shared/ReactFeatureFlags';

import ReactDOM from './ReactDOM';
Expand All @@ -26,8 +25,6 @@ Object.assign(
},
// Perf experiment
addUserTimingListener,

getIsHydrating,
},
);

Expand Down
5 changes: 0 additions & 5 deletions packages/react-reconciler/src/ReactFiberHydrationContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,6 @@ function resetHydrationState(): void {
isHydrating = false;
}

function getIsHydrating(): boolean {
return isHydrating;
}

export {
warnIfHydrating,
enterHydrationState,
Expand All @@ -498,5 +494,4 @@ export {
prepareToHydrateHostTextInstance,
prepareToHydrateHostSuspenseInstance,
popHydrationState,
getIsHydrating,
};

0 comments on commit a607ea4

Please sign in to comment.