Skip to content

Commit b62f284

Browse files
eps1lonAndyPengc12
authored andcommitted
Remove unused initialStatus parameter from useHostTransitionStatus (facebook#26743)
1 parent ac7a9eb commit b62f284

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

packages/react-dom-bindings/src/shared/ReactDOMFormActions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function useFormStatus(): FormStatus {
7070
throw new Error('Not implemented.');
7171
} else {
7272
const dispatcher = resolveDispatcher();
73-
// $FlowFixMe We know this exists because of the feature check above.
73+
// $FlowFixMe[not-a-function] We know this exists because of the feature check above.
7474
return dispatcher.useHostTransitionStatus();
7575
}
7676
}

packages/react-reconciler/src/ReactInternalTypes.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,7 @@ export type Dispatcher = {
422422
useId(): string,
423423
useCacheRefresh?: () => <T>(?() => T, ?T) => void,
424424
useMemoCache?: (size: number) => Array<any>,
425-
useHostTransitionStatus?: (
426-
initialStatus: TransitionStatus,
427-
) => TransitionStatus,
425+
useHostTransitionStatus?: () => TransitionStatus,
428426
};
429427

430428
export type CacheDispatcher = {

0 commit comments

Comments
 (0)