Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wishlist of next functions to build/migrate from react-use #452

Closed
aifeipeng opened this issue Nov 12, 2021 · 5 comments
Closed

Wishlist of next functions to build/migrate from react-use #452

aifeipeng opened this issue Nov 12, 2021 · 5 comments
Labels
✨ enhancement New feature or request

Comments

@aifeipeng
Copy link

aifeipeng commented Nov 12, 2021

New Features

We have been using react-use, but now got into trouble with typescript. So we're looking into migrating to something else. So basically we are using these from react-use which has not yet been implemented in react-hookz. So this is basically a wishlist from our side 😸

  • useInterval
  • usePreviousDistinct
  • useWindowSize
  • useHover
  • useCustomCompareEffect
  • useCopyToClipboard

What is the new or updated feature that you are suggesting?

Why should this feature be included?

@aifeipeng aifeipeng added the ✨ enhancement New feature or request label Nov 12, 2021
@xobotyi
Copy link
Contributor

xobotyi commented Jan 13, 2022

useCustomCompareEffect already exists, btw - https://react-hookz.github.io/web/?path=/docs/lifecycle-usecustomcompareeffect--example

@aifeipeng
Copy link
Author

We made custom hooks for the ones that did not exist. Thank you

@bboydflo
Copy link

last time I checked useInterval was not ported, although I also don't see many reason to do so. But would be nice to rely on a hooks from a single dependency.

xobotyi added a commit that referenced this issue Jun 30, 2022
github-actions bot pushed a commit that referenced this issue Jun 30, 2022
# [14.4.0](v14.3.0...v14.4.0) (2022-06-30)

### Features

* implement `useIntervalEffect` ([a3869a3](a3869a3)), closes [#33](#33) [#452](#452)
@xobotyi
Copy link
Contributor

xobotyi commented Jun 30, 2022

@bboydflo added hook that can help with that useIntervalEffect

@bboydflo
Copy link

@bboydflo added hook that can help with that useIntervalEffect

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Development

No branches or pull requests

3 participants