Skip to content

Commit 6e6a687

Browse files
stanhong2devy-bee
authored andcommittedDec 3, 2021
Fix options parameter type (#8408)
Co-authored-by: Daniel Hong <danielhong@soongsil.ac.kr>
1 parent 5e70cb7 commit 6e6a687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/react-router/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ export function useNavigate(): NavigateFunction {
475475
});
476476

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

0 commit comments

Comments
 (0)
Please sign in to comment.