mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 02:37:59 +02:00
fix type
This commit is contained in:
parent
c2c20de559
commit
06781f024e
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ function Link(
|
||||||
|
|
||||||
const IOSupported = ExecutionEnvironment.canUseIntersectionObserver;
|
const IOSupported = ExecutionEnvironment.canUseIntersectionObserver;
|
||||||
|
|
||||||
const ioRef = useRef<IntersectionObserver>();
|
const ioRef = useRef<IntersectionObserver>(undefined);
|
||||||
|
|
||||||
const handleRef = (el: HTMLAnchorElement | null) => {
|
const handleRef = (el: HTMLAnchorElement | null) => {
|
||||||
innerRef.current = el;
|
innerRef.current = el;
|
||||||
|
|
Loading…
Add table
Reference in a new issue