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

[BUG] useWindowSize does not trigger on orientation change #530

Open
orlando-fv opened this issue Mar 6, 2024 · 0 comments · May be fixed by #544
Open

[BUG] useWindowSize does not trigger on orientation change #530

orlando-fv opened this issue Mar 6, 2024 · 0 comments · May be fixed by #544
Labels
bug Something isn't working

Comments

@orlando-fv
Copy link

Describe the bug

the hook listens only on the resize event

To Reproduce

use on a device with orientation

Expected behavior

should update on orientation change

Additional context

window.addEventListener("orientationchange", handleResize);
@orlando-fv orlando-fv added the bug Something isn't working label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant