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

feat: don't mutate windowSize object if sizes don't change #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FezVrasta
Copy link

Sorry, I wanted to open an issue rather than a PR because:

  1. I don't know if you want to implement this
  2. I don't have time to work on it with the chance you will reject it

But you have disabled issues for this repository, so here's a lame attempt.

Basically, I'd like to be able to just do:

const windowSize = useWindowSize();
useEffect(() => /* something on resize */, [windowSize]);

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