react-use icon indicating copy to clipboard operation
react-use copied to clipboard

React Hooks — 👍

Results 284 react-use issues
Sort by recently updated
recently updated
newest added

# Description Based on [this suggestion](https://github.com/streamich/react-use/issues/805#issuecomment-712782235) this adds support for using useEnsuredForwardedRef with callback refs and adds a test to cover it. Resolves #805 Drafted because I'm checking coverage. ##...

**The sample video can not be loaded** go to [https://streamich.github.io/react-use/?path=/story/ui-usevideo--demo](https://streamich.github.io/react-use/?path=/story/ui-usevideo--demo) open the useVideo-story in chromeBrowser - in network-tab of the BrowserDeveloperTools you can see the video can not be loaded....

**Is your feature request related to a problem? Please describe.** The [more robust keybindings hook](https://github.com/streamich/react-use/blob/master/docs/useKeyboardJs.md) has a peer dependency for [keyboardjs](https://github.com/RobertWHurst/KeyboardJS#keyboardjs), but that lib's maintainer has a new package they...

`useLocalStorage` is not updating the value properly when passing an updater function. This is due to `state` not being included in the `useCallback` deps for the setter function (line 82...

# Description Make `useMethods` consistent with both `useState` and `useReducer` by not updating the returned `methods` object reference if `initialState` changes after the initial render: > The `initialState` argument is...

# Description ## Type of change - [ ] Bug fix _(non-breaking change which fixes an issue)_ - [ ] New feature _(non-breaking change which adds functionality)_ - [ ]...

# Description It is a solution for the issue #1582 . Added additional field for the useScroll hook. The field 'direction' contains fields 'horizontal' and 'vertical'. Initially, they both are...

**Is your feature request related to a problem? Please describe.** The name `useLatest` does not indicate that it returns a ref. **Describe the solution you'd like** Rename `useLatest` to `useLatestRef`....

**Is your feature request related to a problem? Please describe.** My cookie is changed by a request done in some API call. I need to react to that change. The...

ResizeObserver.observe() has `options` https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe , but that's not configurable from `useMeasure()` currently. My usecase is using `border-box` option.