usehooks
usehooks copied to clipboard
A collection of modern, server-safe React hooks – from the ui.dev team
useWindowSize sometimes returns null
I'm using `useLocalStorage` hook from `@uidotdev/usehooks`. Even though [HomePage.tsx](https://github.com/Nusab19/mwc-useLocalStorageHook/blob/main/src/components/HomePage.tsx) file is set to "use client", I'm getting the following error: ```bash ⨯ Error: useLocalStorage is a client-only hook at HomePage...
I was wondering if your library is treeshake-able. Unfortunately, you don't provide any info on that, and a collection of functions like this would be a primary target for treeshaking....
- close #275
Add an option to cancel longPress timeout when scrolling to prevent accidental long presses. Solves: https://github.com/uidotdev/usehooks/issues/270
Wondering why there is no `index.ts` file so contributors can easily add a hook with `typescript` support? This could make it easy to sync between types right?
Hi! I'm using the `useThrottle` hook, and to me, the implementation of the hook is a bit confusing. My idea of a throttle function, is a function that accepts lots...
related https://github.com/import-js/eslint-import-resolver-typescript/issues/448 cc @Brandon-Ritchie @lynnandtonic @tylermcginnis
Please see the video attached here https://github.com/user-attachments/assets/f38c529b-a982-444e-ae86-a57b6d46493c If you observe, when I clear storage in a tab, it does not sync back to the other tab and as I update...
 I recently transitioned from two other hook libraries to this one, primarily due to its claim of being "server safe": To my surprise, after implementation, I encountered an error...