Closed RavenHursT closed 2 years ago
@RavenHursT Yea, you are right I think the getLatLng
and getZipCode
can be synced methods. Would you like to give me a PR for that?
@wellyshen ☝️
@RavenHursT Awesome bro, will review it soon 🤩
Close due to #1002
Wondering why this is
async
? Is there some reason it has to be? 🤔https://github.com/wellyshen/use-places-autocomplete/blob/master/src/utils.ts#L31-L40
I'm using this simple synchronous function in my code and it seems to be working fine. No need to call w/
await
, or have anasync
consumer this way: