Skip to content
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

Do not clear isFetching state for subscriptions until they complete #2775

Closed

Conversation

simhnna
Copy link
Contributor

@simhnna simhnna commented Sep 23, 2022

Fixes: #2774

@changeset-bot
Copy link

changeset-bot bot commented Sep 23, 2022

🦋 Changeset detected

Latest commit: 3f414bd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@graphiql/react Patch
@graphiql/plugin-explorer Patch
graphiql Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 23, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: simhnna / name: Simon Hanna (3f414bd)

@simhnna simhnna force-pushed the fix-subscription-fetching-state branch from fc0d949 to 3f414bd Compare September 23, 2022 12:21
@simhnna
Copy link
Contributor Author

simhnna commented Sep 23, 2022

I've added a changeset. Should I also bump graphiql?
Regarding the CLA, I'm checking how in my company can sign the agreement.

Previously the spinner only showed until the first result came in. Now it shows until the subscription is completed

Here's how it looks now
now

It's better that the play/stop button now shows the correct state. But one could argue that the loading spinner shouldn't be that prominent after the first result is shown. I'm not sure how to best address that, but I'd track that in a separate issue I guess.

Copy link
Collaborator

@thomasheyenbrock thomasheyenbrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As described in #2774 (comment), I think we should align on where we wanna go with the UX for subscriptions first before jumping on smaller items and improvements. Blocking this PR for now until we had a discussion about this in the mentioned issue or a new one that tracks this (the code changes would be perfectly fine in itself).

@simhnna
Copy link
Contributor Author

simhnna commented Nov 25, 2022

Not needed anymore since the same functionality was now implemented in #2907

@simhnna simhnna closed this Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

First response of a subscriptions wrongfully clears isFetching state
2 participants