Skip to content

Commit e91142d

Browse files
authored
Cleanup unused unstable_startTransition, unstable_useTransition, unstable_useDeferredValue exports from fb packages (#27056)
## Summary came across these TODOs – an internal grep indicated that remaining callsites have been cleaned up, so these can now be removed. ## How did you test this change? ``` yarn flow dom-browser yarn test ```
1 parent 7118f5d commit e91142d

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

fixtures/concurrent/time-slicing/src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {PureComponent, unstable_startTransition} from 'react';
1+
import React, {PureComponent, startTransition} from 'react';
22
import {createRoot} from 'react-dom/client';
33
import _ from 'lodash';
44
import Charts from './Charts';
@@ -64,7 +64,7 @@ class App extends PureComponent {
6464
}
6565
this._ignoreClick = true;
6666

67-
unstable_startTransition(() => {
67+
startTransition(() => {
6868
this.setState({showDemo: true}, () => {
6969
this._ignoreClick = false;
7070
});
@@ -103,7 +103,7 @@ class App extends PureComponent {
103103
break;
104104
case 'async':
105105
// TODO: useTransition hook instead.
106-
unstable_startTransition(() => {
106+
startTransition(() => {
107107
this.setState({value});
108108
});
109109
break;

packages/react/index.classic.fb.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export {
3232
memo,
3333
cache,
3434
startTransition,
35-
startTransition as unstable_startTransition, // TODO: Remove once call sights updated to startTransition
3635
unstable_Cache,
3736
unstable_TracingMarker,
3837
unstable_DebugTracingMode,
@@ -48,7 +47,6 @@ export {
4847
useContext,
4948
useDebugValue,
5049
useDeferredValue,
51-
useDeferredValue as unstable_useDeferredValue, // TODO: Remove once call sights updated to useDeferredValue
5250
useEffect,
5351
experimental_useEffectEvent,
5452
useImperativeHandle,
@@ -61,7 +59,6 @@ export {
6159
useState,
6260
useSyncExternalStore,
6361
useTransition,
64-
useTransition as unstable_useTransition, // TODO: Remove once call sights updated to useTransition
6562
version,
6663
} from './src/React';
6764
export {jsx, jsxs, jsxDEV} from './src/jsx/ReactJSX';

packages/react/index.modern.fb.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export {
3131
memo,
3232
cache,
3333
startTransition,
34-
startTransition as unstable_startTransition, // TODO: Remove once call sights updated to startTransition
3534
unstable_Cache,
3635
unstable_DebugTracingMode,
3736
unstable_LegacyHidden,
@@ -46,7 +45,6 @@ export {
4645
useContext,
4746
useDebugValue,
4847
useDeferredValue,
49-
useDeferredValue as unstable_useDeferredValue, // TODO: Remove once call sights updated to useDeferredValue
5048
useEffect,
5149
experimental_useEffectEvent,
5250
useImperativeHandle,
@@ -59,7 +57,6 @@ export {
5957
useState,
6058
useSyncExternalStore,
6159
useTransition,
62-
useTransition as unstable_useTransition, // TODO: Remove once call sights updated to useTransition
6360
version,
6461
} from './src/React';
6562
export {jsx, jsxs, jsxDEV} from './src/jsx/ReactJSX';

0 commit comments

Comments
 (0)