Skip to content

Commit

Permalink
random type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lubieowoce committed Jan 20, 2025
1 parent cb7ce57 commit 5a0ca8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/client/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ const Link = React.forwardRef<HTMLAnchorElement, LinkPropsReal>(
})

const setIntersectionWithResetRef = React.useCallback(
(el: Element) => {
(el: Element | null) => {
// Before the link getting observed, check if visible state need to be reset
if (previousAs.current !== as || previousHref.current !== href) {
resetVisible()
Expand Down

0 comments on commit 5a0ca8f

Please sign in to comment.