Skip to content

add debounce option #111

Open
Open
@gr2m

Description

@gr2m

follow up for hoodiehq/hoodie#202

Use case: continuously saving a text entered by a user with every key stroke. Instead of creating thousands of revisions, we want to store the current text in memory for a short time and only save after the user stopped typing for a moment (e.g. 2 seconds).

Suggested API

hoodie.store.add('doc', properties, {debounce: true})

or set a custom timeout in ms

hoodie.store.add('doc', properties, {debounce: 5000})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions