Skip to content

Commit

Permalink
Fix options parameter type (#8408)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Hong <danielhong@soongsil.ac.kr>
  • Loading branch information
stanhong2 and devy-bee authored Nov 29, 2021
1 parent f996798 commit e847506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-router/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export function useNavigate(): NavigateFunction {
});

let navigate: NavigateFunction = React.useCallback(
(to: To | number, options: { replace?: boolean; state?: any } = {}) => {
(to: To | number, options: NavigateOptions = {}) => {
warning(
activeRef.current,
`You should call navigate() in a React.useEffect(), not when ` +
Expand Down

0 comments on commit e847506

Please sign in to comment.