-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
First response of a subscriptions wrongfully clears isFetching
state
#2774
Comments
Hey @simhnna 👋 This behavior is intended. The full view should be available once there is a first response. For subscriptions the play button as you noted is currently the indicator if the request is still running or not. I'm with you that the current state is not ideal:
|
I don't think we have an issue yet that tracks the bigger picture, i.e. how we can improve the UI for subscriptions. Would you be up for broadening the scope of this issue? I think I would be better thinking that through first before jumping on smaller items like the loading spinner and the |
Yeah we can broaden this issue I guess. I'm no a11y expert, I'd rather leave that to someone else. But yeah I see 3 main pain points with the current implementation:
Execute buttonFor our internal deployment of graphiql I'd rather have that fixed quickly, and it's a small change (but it surfaces issue 2...) The loading indicatorI guess it's well placed for queries and mutations. Subscriptions could be running for a long time, and I don't think reserving that much space is a good idea. Maybe switch over to a loading bar? Not sure where to place it though. HistoryThat's a big point. I currently mainly use altair for subscriptions but I can't say I'm happy with how the subscriptions are displayed there. I actually very much like the current implementation in that only shows the most recent value. I do understand that showing the history is something people will want to have. |
@thomasheyenbrock the original issue for improved subscriptions UI is #436. it was in the github project roadmap I shared! |
Could we maybe discuss a MVP so I can get this bugfix in? |
The behavior of the execute button has been changed in the PR linked above ☝️ That change has just been published with with |
@simhnna @thomasheyenbrock Hi, is there a way to access the isFetching state & use our own custom loader ? |
The text was updated successfully, but these errors were encountered: