react-use
react-use copied to clipboard
React Hooks — 👍
# Description hook name that imported had typo issue, fixed from `usePinchZoon` to `usePinchZoom` not important but it's a issue anyways ## Type of change - [x] Bug fix _(non-breaking...
# Description Right now the `useLocalStorage` hook does not properly add `state` as a `useCallback` dependency, leading to bugs where you pass a `function` as the argument to `setState` ##...
Add ability to trigger a callback when the size is updated. ``` const { ... } = useWindowSize(() => { ...callback on resize... }); ```
**Is your feature request related to a problem? Please describe.** As the title suggests, it would be nice to be able to clear the clipboard internal state. Currently I have...
Making sure useEffectOnce actually runs only once. Particularly preventing React 18 from rendering twice in development mode.
**What is the current behavior?** `useDropArea` on an element with children elements doesn't seem to work as expected. Essentially, if you have a child element inside a drop area the...
# Description `remove` is deprecated ## Type of change - [x] Bug fix _(non-breaking change which fixes an issue)_ - [ ] New feature _(non-breaking change which adds functionality)_ -...
# Description ## Type of change - [x] Bug fix _(non-breaking change which fixes an issue)_ - [ ] New feature _(non-breaking change which adds functionality)_ - [ ] **Breaking...
**What is the current behavior?** When testing on BrowserStack with a physical iPhone 11 in Safari, `navigator.permissions.query` is throwing an exception within `usePermission`.  **Steps to reproduce it and if...
**Is your feature request related to a problem? Please describe.** I want to be able to see (and hopefully set) the entire state of a component. **Describe the solution you'd...