mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #4516] [MERGED] fix: clicking on run query without connecting connects without docs polling #4842
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4842
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/4516
Author: @AndrewBastin
Created: 11/6/2024
Status: ✅ Merged
Merged: 11/7/2024
Merged by: @jamesgeorge007
Base:
patch← Head:fix/gql-connect-without-docs📝 Commits (1)
3b8dcd2fix: clicking on run query without connecting connects without docs updates📊 Changes
2 files changed (+8 additions, -7 deletions)
View changed files
📝
packages/hoppscotch-common/src/components.d.ts(+1 -1)📝
packages/hoppscotch-common/src/helpers/graphql/connection.ts(+7 -6)📄 Description
This PR introduces a fix for an issue where when running GraphQL requests without clicking on query, the connect button changes into
Disconnectwithout doing a formal connection and pulling docs and starting polling.What's changed
connectfunction is now async and waits for the first poll to be done before resolvingrunGQLOperationcalls and waits onconnectbefore executing the operation.Notes to reviewers
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.