mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #5485] [MERGED] fix: avoid rapid polling while fetching teams in selector #5233
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#5233
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/5485
Author: @nivedin
Created: 10/16/2025
Status: ✅ Merged
Merged: 10/22/2025
Merged by: @jamesgeorge007
Base:
next← Head:fix/team-selector-poll-bug📝 Commits (4)
85b8317fix: avoid rapid polling while fetching teams in selectorfda1647chore: lint cleanup585f7b4chore: cleanup1821f65fix: infinite loop bug when expanding collection📊 Changes
7 files changed (+55 additions, -24 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/app/Header.vue(+2 -2)📝
packages/hoppscotch-common/src/components/workspace/Selector.vue(+30 -16)📝
packages/hoppscotch-common/src/helpers/import-export/import/hopp.ts(+1 -1)📝
packages/hoppscotch-common/src/modules/tippy.ts(+8 -0)📝
packages/hoppscotch-common/src/newstore/collections.ts(+1 -1)📝
packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/index.ts(+4 -4)📝
packages/hoppscotch-common/src/services/team-collection.service.ts(+9 -0)📄 Description
Closes FE-1033
This PR fixes an issue where the Workspace Selector component was polling multiple times to fetch teams. A debounced watcher has been added, and instead of using useElementVisibility for the Tippy component, the state prop from vue-tippy is now used for a more stable flow.
It also fixes an issue where expanding a collection triggered recurring backend calls when the session expired causing the app to crash.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.