Skip to content

Commit dd7d681

Browse files
committed
cleanup leftovers from copy/paste of use() diff
1 parent 3be3708 commit dd7d681

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

packages/react-reconciler/src/ReactInternalTypes.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import type {
1717
MutableSource,
1818
StartTransitionOptions,
1919
Wakeable,
20-
Usable,
2120
} from 'shared/ReactTypes';
2221
import type {SuspenseInstance} from './ReactFiberHostConfig';
2322
import type {WorkTag} from './ReactWorkTags';
@@ -356,7 +355,6 @@ type BasicStateAction<S> = (S => S) | S;
356355
type Dispatch<A> = A => void;
357356

358357
export type Dispatcher = {|
359-
use?: <T>(Usable<T>) => T,
360358
getCacheSignal?: () => AbortSignal,
361359
getCacheForType?: <T>(resourceType: () => T) => T,
362360
readContext<T>(context: ReactContext<T>): T,

packages/shared/ReactTypes.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,3 @@ export type OffscreenMode =
189189
export type StartTransitionOptions = {
190190
name?: string,
191191
};
192-
193-
// TODO: Add Context support
194-
export type Usable<T> = Thenable<T>;

0 commit comments

Comments
 (0)