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

Debounce is per-file, not global #301

Open
dobesv opened this issue Sep 6, 2023 · 0 comments · May be fixed by #302
Open

Debounce is per-file, not global #301

dobesv opened this issue Sep 6, 2023 · 0 comments · May be fixed by #302

Comments

@dobesv
Copy link

dobesv commented Sep 6, 2023

Problem

When running a build, the app restarts over and over even though we set a debounce value of 10 seconds

Suspected cause

Looking at the code, it looks like the debounce option is applied at a per-file level, so if multiple files are modified within the debounce period, they do not reset the debounce timer and the app will restart 10 seconds after the first file change even if more files are still being changed.

Probable solution

The library should set up its own internal debounce that applies globally to the whole run, not with a separate debounce per file.

@dobesv dobesv linked a pull request Sep 6, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant