react-use
react-use copied to clipboard
React Hooks — 👍
Thanks to libraries like `react-query` and `swr` I don't need full-fledged state management libraries anymore. But every now and then I'll end up needing to set a global variable or...
# Description Fix for [this issue](https://github.com/streamich/react-use/issues/1711) `x`, `y`, `top` and `left` are always `0` inside `contentRect` Replace the usage of `ResizeObserverEntry.contentRect`, and retrive values from `ResizeObserverEntry.target.getBoundingClientRect()` https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry ## Type of...
# Description add `import { useScrollbarWidth } from "react-use";` to Usage code in the `useScrollbarWidth.md` ## Type of change - [ ] Bug fix _(non-breaking change which fixes an issue)_...
change `../useMediatedState` to `react-use` # Description ## Type of change - [ ] Bug fix _(non-breaking change which fixes an issue)_ - [ ] New feature _(non-breaking change which adds...
# Description add `import { useDebounce } from "react-use";` to the Usage ## Type of change - [ ] Bug fix _(non-breaking change which fixes an issue)_ - [ ]...
add `import { useCopyToClipboard } from "react-use";` to the Usage code in `useCopyToClipboard.md` # Description ## Type of change - [ ] Bug fix _(non-breaking change which fixes an issue)_...
**What is the current behavior?** On iOS, It is not possible to scroll inside a fixed positioned content when useLockBodyScroll is used. It works fine in Desktops and android phones...
# Description `useSessionStorage` is passing the same value that it is receiving from `useState` but returning different type   causing a typescript error to appear when using functional updates...
**What is the current behavior?** current typing for `useMediatedState` expects the mediated state to be the same as the initial/incoming value **What is the expected behavior?** it should allow to...
# Description This PR adds `clipboard-read` & `clipboard-write` permissions to `usePermissions` hook. Check https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API for further information. ## Type of change - [ ] Bug fix _(non-breaking change which fixes...