Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Debounce Responsive hooks? #25

Open
jakob-p opened this issue Nov 22, 2021 · 2 comments
Open

Debounce Responsive hooks? #25

jakob-p opened this issue Nov 22, 2021 · 2 comments

Comments

@jakob-p
Copy link

jakob-p commented Nov 22, 2021

Hi, would it be possible to add a debounce to the responsive hooks, so the number of re-renders per time is limited?

At the moment the hook is firing very often during resizing the browser window or rotating the device, causing a lot of re-rendering.

@jakob-p
Copy link
Author

jakob-p commented Nov 23, 2021

something like this:
jakob-p@12bf92f

I can open a PR if you want

@allindeveloper
Copy link

Please can this PR be merged

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

No branches or pull requests

2 participants