kevinsimper / gdg-search

🌍 Easily find any GDG in the world
https://gdgsearch.com
7 stars 2 forks source link

If first request is slow then second request succeeds first #49

Closed kevinsimper closed 1 year ago

kevinsimper commented 4 years ago

If the first request is slow because of cold start from cloud run, the first request is not cancelled.

Like on upcoming, there is a request for all upcoming events made when you load the page, but if a region is selected a second request is made and that request is sometimes quicker. That means that when the first request succeeds after the second request, the wrong data is shown.

Like you want to see all events from europe, but it will show all events from the world.

https://gdgsearch.com/#!upcoming?region=Europe