Skip to content

Commit

Permalink
cleanup leftovers from copy/paste of use() diff
Browse files Browse the repository at this point in the history
  • Loading branch information
josephsavona committed Aug 19, 2022
1 parent 3be3708 commit dd7d681
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions packages/react-reconciler/src/ReactInternalTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import type {
MutableSource,
StartTransitionOptions,
Wakeable,
Usable,
} from 'shared/ReactTypes';
import type {SuspenseInstance} from './ReactFiberHostConfig';
import type {WorkTag} from './ReactWorkTags';
Expand Down Expand Up @@ -356,7 +355,6 @@ type BasicStateAction<S> = (S => S) | S;
type Dispatch<A> = A => void;

export type Dispatcher = {|
use?: <T>(Usable<T>) => T,
getCacheSignal?: () => AbortSignal,
getCacheForType?: <T>(resourceType: () => T) => T,
readContext<T>(context: ReactContext<T>): T,
Expand Down
3 changes: 0 additions & 3 deletions packages/shared/ReactTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,3 @@ export type OffscreenMode =
export type StartTransitionOptions = {
name?: string,
};

// TODO: Add Context support
export type Usable<T> = Thenable<T>;

0 comments on commit dd7d681

Please sign in to comment.