Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Enforce ReactDOMComet in a Modern Environment
Browse files Browse the repository at this point in the history
Reviewed By: sebmarkbage

Differential Revision: D20001993

fbshipit-source-id: e002176e49ccbf9db239e69691715bd798fc7966
  • Loading branch information
gaearon authored and facebook-github-bot committed Feb 25, 2020
1 parent b4a1db9 commit 6630163
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/module-map.js
Expand Up @@ -10,6 +10,7 @@ module.exports = Object.assign(
immutable: 'immutable',
React: 'react',
ReactDOM: 'react-dom',
ReactDOMComet: 'react-dom',
'object-assign': 'object-assign',

ReactTestUtils: 'react-dom/lib/ReactTestUtils',
Expand Down
4 changes: 2 additions & 2 deletions src/component/base/DraftEditorFlushControlled.js
Expand Up @@ -9,10 +9,10 @@
* @emails oncall+draft_js
*/

const ReactDOM = require('ReactDOM');
const ReactDOMComet = require('ReactDOMComet');

const flushControlled: void | ((fn: () => void) => void) =
// $FlowExpectedError unstable_flushControlled is not yet in the upstream Flow typing
ReactDOM.unstable_flushControlled;
ReactDOMComet.unstable_flushControlled;

module.exports = flushControlled;

0 comments on commit 6630163

Please sign in to comment.