-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Show in progress queries/mutations #117
Comments
Unfortunately this isn't possible. Chrome exposes no api to listen to the start of a request that we are able to associate to the end of a request. |
I'm not familiar with the SDK for extensions but can't we simple render the loading, make the request and when it finishes render what needs to be rendered? |
We only receive an event from the chrome api once the request has finished. There is a way to get events when a request starts, which contains less information, but there is no way to associate the start event with the end event. These events are: Request Started: Request Finished: If there were some fixed |
Can't we curry the callback function with the identifier somehow? Again, I never worked on a Chrome Extension before, going through the docs here to see how it works but it might take me a while to figure. |
Or even use a WeakMap with the request object (in the case it's the same object on both callbacks), I don't know yet. |
Did you see that?
https://developer.chrome.com/docs/extensions/reference/webRequest/#request-ids |
I think that's just in the context of all the events on the webRequest api. Whereas we are mixing webRequest and network. |
This is being worked on currently. |
Is your feature request related to a problem? Please describe.
Some queries/mutations can take a lot of time, i.e.: 30 seconds.
Describe the solution you'd like
During that time, the request is going on, would be nice to see it as "In progress" or "Waiting for response" in the inspector.
Describe alternatives you've considered
Usually I keep an eye on network tab for those requests but then I need to be aware they are taking too long and move between tabs.
Additional context
N/A
The text was updated successfully, but these errors were encountered: