Skip to content

Support debounce and throttling for usePlacesWidget #242

Open
@HoangMinhBK

Description

@HoangMinhBK

Currently, usePlaceWidget does not support debounce or throttling, this cause every keystroke or interaction with the input send requests to google map API immediately. I tried some tricky way like manipulating the ref but it does not work.

I also tried usePlacesService (which supports debounce) and code a custom dropdown but it's more complicated and error-prone compared to usePlaceWidget.

I think it is necessary to have debounce option on this, because usePlaceWidget is really simple and convenient to use, and people choose this hook a lot because of its simplicity.
Thank you.

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