You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Currently,
usePlaceWidget
does not supportdebounce
orthrottling
, this cause every keystroke or interaction with the input send requests to google map API immediately. I tried some tricky way like manipulating theref
but it does not work.I also tried
usePlacesService
(which supportsdebounce
) and code a custom dropdown but it's more complicated and error-prone compared tousePlaceWidget
.I think it is necessary to have
debounce
option on this, becauseusePlaceWidget
is really simple and convenient to use, and people choose this hook a lot because of its simplicity.Thank you.
The text was updated successfully, but these errors were encountered: