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

useHoverIntent return wrong array methods #38

Closed
kurdin opened this issue Oct 17, 2022 · 4 comments
Closed

useHoverIntent return wrong array methods #38

kurdin opened this issue Oct 17, 2022 · 4 comments

Comments

@kurdin
Copy link

kurdin commented Oct 17, 2022

Your hook is not working if you follow the documentation. In your source code you return [isHovering, setIsHovering, intentRef] from useHoverIntent hook but in the doc, it says [isHovering, ref].
ref is not working correctly because it's setIsHovering method.

@tony
Copy link

tony commented Oct 17, 2022

const [isHovering, setIsHovering, intentRef] did the trick for me (as of 1.2.8)

This package is really nice, nice job @natelindev!

@kurdin
Copy link
Author

kurdin commented Oct 17, 2022

const [isHovering, setIsHovering, intentRef] did the trick for me (as of 1.2.8)

This package is really nice, nice job @natelindev!

Yes it does work good with const [isHovering, setIsHovering, intentRef] I wanted to point that docs need to be updated as well.

Indeed nice package @natelindev

@natelindev
Copy link
Owner

Sorry for not updating the docs and introducing (potentially)breaking change with incorrect version change.
I'll create a new version that fix these issues.

@natelindev
Copy link
Owner

fixed in v1.2.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants