Hi,
When I use useWindowScroll
,
useEffect(() => {
scrollTo(0, 0);
}, [scrollTo]);
The compiler says "Expected 1 arguments, but got 2.".
Effectively, the index.d.ts is incorrect :
export function useWindowScroll(): [
{
x: number | null;
y: number | null;
},
(args: unknown) => void
];