We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hooks useUp & useDown have following type declaration:
useUp
useDown
declare const useUp: (key: string | number) => boolean; declare const useDown: (key: string | number) => boolean;
but calling useUp(1024) always returns false.
useUp(1024)
false
const App = () => { const upLg = useUp(1024); return <>{upLg ? ">lg" : "<lg"}</> }
useUp & useDown should either disallow number values or handle them properly.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🐛 Bug Report
Hooks
useUp
&useDown
have following type declaration:but calling
useUp(1024)
always returnsfalse
.To Reproduce
Expected behavior
useUp
&useDown
should either disallow number values or handle them properly.The text was updated successfully, but these errors were encountered: