usehooks icon indicating copy to clipboard operation
usehooks copied to clipboard

A collection of modern, server-safe React hooks – from the ui.dev team

Results 106 usehooks issues
Sort by recently updated
recently updated
newest added

Hello, I'm using the `useClickAway` hook from the `@uidotdev/usehooks` library in my Next.js application. When I run my application in development mode, I'm seeing the following warning in my console:...

First of all, thank you for this amazing library, it saved me a lot of time! I am writing some fairly complex logic for which I need an `IntersectionObserver` that...

This pull request addresses an issue where the useDocumentTitle hook does not revert the document title back to its original value when the component using it unmounts. Without this adjustment,...

Hi, I used the `useDefault` hook in my project with typescript in strict mode and had a little issue with the types returned by `useDefault`. If I write the following...

👋 Hello guys, i encountered a sudden error after installing the package. Any insights or tips on troubleshooting would be greatly appreciated! Thanks 📝 Details: When attempting to use the...

This PR updates the type signature of the useMap function to improve type safety as reference in #278 By specifying separate generic types for keys and values (K and V),...

Set, retrieve, and synchronize data from the URL. Similar to https://usehooks.com/uselocalstorage

Found this hoping I could use multiple keys, but that doesn't seem to be the case. I've tried the following variations: ```ts useKeyPress("Control k", onKeyPress) useKeyPress("Control+k", onKeyPress) useKeyPress("Control + k",...

useObjectState accepts a partial object to update a property state, but the type definition was expecting the whole object to be updated.