Skip to content

Debounce flush does not cancel the delayed invocation #256

@christhofer

Description

@christhofer

debounce.flush() triggers the function but does not cancel the debounce call.
So the function run twice.

Meanwhile Lodash stop the debounce call on flush, so the function only run once.

Reproduction Radash vs Lodash Debounce

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions