Skip to content

Debounce is per-file, not global #301

@dobesv

Description

@dobesv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions