Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddressComplete: getAddress() distance threshold #69

Open
1 task
danielfbl opened this issue Mar 10, 2021 · 0 comments
Open
1 task

AddressComplete: getAddress() distance threshold #69

danielfbl opened this issue Mar 10, 2021 · 0 comments
Labels
Milestone

Comments

@danielfbl
Copy link
Contributor

  • what would be a better threshold than 500ms?

const getAddress = React.useCallback(
debounce<(input: string, session: string) => void>(async (input: string, session) => {
setLoading(true);
const results = await api
.maps()
.googlePlacesAutocomplete(input, session, createCancelToken(), coords);
setLoading(false);
if (results) setAutoCompletePredictions(results);
}, 500),
[coords]
);

@danielfbl danielfbl added enhancement Improvements mvp1 labels Mar 10, 2021
@pdandradeb pdandradeb removed the mvp1 label May 14, 2021
@danielfbl danielfbl added this to the mvp beta milestone May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants