🐛 Bug Report
Hooks useUp & useDown have following type declaration:
declare const useUp: (key: string | number) => boolean;
declare const useDown: (key: string | number) => boolean;
but calling useUp(1024) always returns false.
To Reproduce
const App = () => {
const upLg = useUp(1024);
return <>{upLg ? ">lg" : "<lg"}</>
}
Expected behavior
useUp & useDown should either disallow number values or handle them properly.
🐛 Bug Report
Hooks
useUp&useDownhave following type declaration:but calling
useUp(1024)always returnsfalse.To Reproduce
Expected behavior
useUp&useDownshould either disallow number values or handle them properly.