Skip to content

Listener can be called after destroy #53

@TarVK

Description

@TarVK

When calling .destroy() on an Observer that has a debounce delay, the listener may still be called after this delay.
This may be desirable in some cases, but at least is not in all cases. We could either always cancel scheduled updates, or add a flag to either cancel them or not.

Below is a link to the relevant function:
https://github.com/TarVK/model-react/blob/master/src/model/dataHooks/Observer.ts#L108

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