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
```
This commit is contained in:
Noah Lemen 2023-07-05 17:23:43 -04:00 committed by GitHub
parent 7118f5dd7b
commit e91142dd69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 9 deletions

View File

@ -1,4 +1,4 @@
import React, {PureComponent, unstable_startTransition} from 'react';
import React, {PureComponent, startTransition} from 'react';
import {createRoot} from 'react-dom/client';
import _ from 'lodash';
import Charts from './Charts';
@ -64,7 +64,7 @@ class App extends PureComponent {
}
this._ignoreClick = true;
unstable_startTransition(() => {
startTransition(() => {
this.setState({showDemo: true}, () => {
this._ignoreClick = false;
});
@ -103,7 +103,7 @@ class App extends PureComponent {
break;
case 'async':
// TODO: useTransition hook instead.
unstable_startTransition(() => {
startTransition(() => {
this.setState({value});
});
break;

View File

@ -32,7 +32,6 @@ export {
memo,
cache,
startTransition,
startTransition as unstable_startTransition, // TODO: Remove once call sights updated to startTransition
unstable_Cache,
unstable_TracingMarker,
unstable_DebugTracingMode,
@ -48,7 +47,6 @@ export {
useContext,
useDebugValue,
useDeferredValue,
useDeferredValue as unstable_useDeferredValue, // TODO: Remove once call sights updated to useDeferredValue
useEffect,
experimental_useEffectEvent,
useImperativeHandle,
@ -61,7 +59,6 @@ export {
useState,
useSyncExternalStore,
useTransition,
useTransition as unstable_useTransition, // TODO: Remove once call sights updated to useTransition
version,
} from './src/React';
export {jsx, jsxs, jsxDEV} from './src/jsx/ReactJSX';

View File

@ -31,7 +31,6 @@ export {
memo,
cache,
startTransition,
startTransition as unstable_startTransition, // TODO: Remove once call sights updated to startTransition
unstable_Cache,
unstable_DebugTracingMode,
unstable_LegacyHidden,
@ -46,7 +45,6 @@ export {
useContext,
useDebugValue,
useDeferredValue,
useDeferredValue as unstable_useDeferredValue, // TODO: Remove once call sights updated to useDeferredValue
useEffect,
experimental_useEffectEvent,
useImperativeHandle,
@ -59,7 +57,6 @@ export {
useState,
useSyncExternalStore,
useTransition,
useTransition as unstable_useTransition, // TODO: Remove once call sights updated to useTransition
version,
} from './src/React';
export {jsx, jsxs, jsxDEV} from './src/jsx/ReactJSX';