Temporary patch www fork with prefixed APIs (#17103)
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.
Andrew Clark committed
Oct 15, 2019 at 16:44 UTC
43562455c992cfc614f4301473443e1360baf7b5
1 file changed
+8
packages/react-dom/src/client/ReactDOMFB.js
+8
@@ -39,4 +39,12 @@ Object.assign(
39
},
40
);
41
42
+// TODO: These are temporary until we update the callers downstream.
43
+ReactDOM.unstable_createRoot = ReactDOM.createRoot;
44
+ReactDOM.unstable_createSyncRoot = ReactDOM.createSyncRoot;
45
+ReactDOM.unstable_interactiveUpdates = (fn, a, b, c) => {
46
+ ReactDOM.unstable_flushDiscreteUpdates();
47
+ return ReactDOM.unstable_discreteUpdates(fn, a, b, c);
48
+};
49
+
50
export default ReactDOM;