by SeanAnderson · 3y ago · 0 comments
Yeah. All of this code is written in Rust and running in WASM. I found it challenging to interface async JS callbacks with my Rust code. After I spent a bit of time trying to get what I thought the easiest route was to work (geolocation API) and failed on a simple callback, I decided to just throw in the lat/long inputs and see if people liked the feature at all. I agree that the best solution is one where the user doesn't even have to think about this feature
Maybe instead of lat/long, you expose a dropdown of popular cities? Again not bulletproof but does make the user's life easier