mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #4284] [MERGED] fix: persist request execution context between tabs #4734
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#4734
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/4284
Author: @nivedin
Created: 8/22/2024
Status: ✅ Merged
Merged: 8/22/2024
Merged by: @jamesgeorge007
Base:
patch← Head:fix/request-send-btn-loading-text📝 Commits (2)
d2f8af0chore: use tab response loading state for request buttonc6838f9chore: add tab specific cancel function📊 Changes
3 files changed (+18 additions, -7 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/http/Request.vue(+12 -7)📝
packages/hoppscotch-common/src/helpers/rest/document.ts(+5 -0)📝
packages/hoppscotch-common/src/services/persistence/validation-schemas/index.ts(+1 -0)📄 Description
Closes #4271 HFE-565
This PR fixes the bug where when sending a request in tab1, the button
sendchanges tocancel. Before the request finishes switching to tab2 and back to tab1, thecancelbutton disappears.What's changed
The text now depends on the tab response loading state rather than a component-level loading value. Also, a new field
cancelFunctionis added under the tab documentHoppRESTDocumentto keep a reference to the cancel function to cancel the current request in execution.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.