Skip to content

Commit

Permalink
Remove unused initialStatus parameter from useHostTransitionStatus (
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored and AndyPengc12 committed Apr 15, 2024
1 parent ac7a9eb commit b62f284
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function useFormStatus(): FormStatus {
throw new Error('Not implemented.');
} else {
const dispatcher = resolveDispatcher();
// $FlowFixMe We know this exists because of the feature check above.
// $FlowFixMe[not-a-function] We know this exists because of the feature check above.
return dispatcher.useHostTransitionStatus();
}
}
4 changes: 1 addition & 3 deletions packages/react-reconciler/src/ReactInternalTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,7 @@ export type Dispatcher = {
useId(): string,
useCacheRefresh?: () => <T>(?() => T, ?T) => void,
useMemoCache?: (size: number) => Array<any>,
useHostTransitionStatus?: (
initialStatus: TransitionStatus,
) => TransitionStatus,
useHostTransitionStatus?: () => TransitionStatus,
};

export type CacheDispatcher = {
Expand Down

0 comments on commit b62f284

Please sign in to comment.