Skip to content

Commit df25f91

Browse files
Denismolefrog
authored andcommitted
Add onClick dependency to useCallback
1 parent 86dec9d commit df25f91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const Link = props => {
114114
props.onClick();
115115
}
116116
},
117-
[href]
117+
[href, props.onClick]
118118
);
119119

120120
// wraps children in `a` if needed

0 commit comments

Comments
 (0)