Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Dec 6, 2024
1 parent c2c20de commit 06781f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus/src/client/exports/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function Link(

const IOSupported = ExecutionEnvironment.canUseIntersectionObserver;

const ioRef = useRef<IntersectionObserver>();
const ioRef = useRef<IntersectionObserver>(undefined);

const handleRef = (el: HTMLAnchorElement | null) => {
innerRef.current = el;
Expand Down

0 comments on commit 06781f0

Please sign in to comment.