Remove flushControlled from experimental releases (#23384)
This brings the exports on npm to parity which simplifies things a bit. We also don't plan to release this. It is used by Draft.js but that caller will need to switch to flushSync.
Sebastian Markbåge committed
Feb 28, 2022 at 14:38 UTC
a2327442157265873bf63f1124c142322f41f6de
2 files changed
+3
-4
packages/react-dom/index.experimental.js
-1
@@ -18,7 +18,6 @@ export {
18
render,
19
unmountComponentAtNode,
20
unstable_batchedUpdates,
21
- unstable_flushControlled,
21
unstable_renderSubtreeIntoContainer,
22
unstable_runWithPriority, // DO NOT USE: Temporarily exposed to migrate off of Scheduler.runWithPriority.
23
version,
packages/react-dom/src/__tests__/ReactDOMFiberAsync-test.js
+3
-3
@@ -286,7 +286,7 @@ describe('ReactDOMFiberAsync', () => {
286
expect(ops).toEqual(['BC', 'ABCD']);
287
});
288
289
- // @gate experimental || www
289
+ // @gate www
290
it('flushControlled flushes updates before yielding to browser', () => {
291
let inst;
292
class Counter extends React.Component {
@@ -326,7 +326,7 @@ describe('ReactDOMFiberAsync', () => {
326
]);
327
});
328
329
- // @gate experimental || www
329
+ // @gate www
330
it('flushControlled does not flush until end of outermost batchedUpdates', () => {
331
let inst;
332
class Counter extends React.Component {
@@ -357,7 +357,7 @@ describe('ReactDOMFiberAsync', () => {
357
]);
358
});
359
360
- // @gate experimental || www
360
+ // @gate www
361
it('flushControlled returns nothing', () => {
362
// In the future, we may want to return a thenable "work" object.
363
let inst;