mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
fix type
This commit is contained in:
parent
c2c20de559
commit
06781f024e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue