Skip to content

Commit

Permalink
Temporary patch www fork with prefixed APIs (#17103)
Browse files Browse the repository at this point in the history
I'm doing this here instead of in the downstream repo so that if the
sync diff gets reverted, it doesn't revert this, too.

Once the sync has landed, and the callers are updated in www, I will
remove this.
  • Loading branch information
acdlite authored Oct 15, 2019
1 parent 9123c47 commit 4356245
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/react-dom/src/client/ReactDOMFB.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@ Object.assign(
},
);

// TODO: These are temporary until we update the callers downstream.
ReactDOM.unstable_createRoot = ReactDOM.createRoot;
ReactDOM.unstable_createSyncRoot = ReactDOM.createSyncRoot;
ReactDOM.unstable_interactiveUpdates = (fn, a, b, c) => {
ReactDOM.unstable_flushDiscreteUpdates();
return ReactDOM.unstable_discreteUpdates(fn, a, b, c);
};

export default ReactDOM;

0 comments on commit 4356245

Please sign in to comment.