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
This has been happening for quite a while and I cannot figure out why. I am going to try to get some sample code together to show the problem but I am hoping someone can shed some light in the meantime.
I have a component that grabs the location on componentDidMount per the docs and sets the position on the store
SearchStore.setPosition does an emitChange() and componentDidUpdate is firing correctly, VenueActions.getVenues() does an XMLHttpRequest to the server to grab a list of venues, I am debugging that call as well, and I can see it firing, the only problem is that the request doesn't "resolve" unless I change tabs and come back to it, as soon as I do the request fullfills, even though the server sent back the response seconds before (I can see it in the logs).
I was using fetch to do make the calls and tried using XMLHttpRequest and still had the same problem. The thing is on other components where I make XHR calls without using GeoLocation it works great, it only seems to have this "stuck" problem when I grab the location and make a call afterwards.
Interesting enough it doesn't happen on the device, it works great on there.........so I am guessing there is something going with Chrome providing the location? It's not a big deal but I thought I would report it in case we could do something to improve it.
The text was updated successfully, but these errors were encountered:
Thanks for reporting @josebalius - always a great idea to track these things in case others have the problem. Definitely a weird one, but as you say it's pretty low priority because it only affects Chrome when fetching Geolocation just before fetch :p
If someone has time to investigate further please post the follow up here!
brentvatne
changed the title
[GeoLocation] Weird network issue
[Geolocation] Weird network issue
Jul 21, 2015
Hey guys,
This has been happening for quite a while and I cannot figure out why. I am going to try to get some sample code together to show the problem but I am hoping someone can shed some light in the meantime.
I have a component that grabs the location on componentDidMount per the docs and sets the position on the store
SearchStore.setPosition does an emitChange() and componentDidUpdate is firing correctly, VenueActions.getVenues() does an XMLHttpRequest to the server to grab a list of venues, I am debugging that call as well, and I can see it firing, the only problem is that the request doesn't "resolve" unless I change tabs and come back to it, as soon as I do the request fullfills, even though the server sent back the response seconds before (I can see it in the logs).
I was using
fetch
to do make the calls and tried using XMLHttpRequest and still had the same problem. The thing is on other components where I make XHR calls without using GeoLocation it works great, it only seems to have this "stuck" problem when I grab the location and make a call afterwards.Interesting enough it doesn't happen on the device, it works great on there.........so I am guessing there is something going with Chrome providing the location? It's not a big deal but I thought I would report it in case we could do something to improve it.
The text was updated successfully, but these errors were encountered: