[PR #5485] [MERGED] fix: avoid rapid polling while fetching teams in selector #5233

Closed
opened 2026-03-17 02:42:01 +03:00 by kerem · 0 comments
Owner

📋 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: nextHead: fix/team-selector-poll-bug


📝 Commits (4)

  • 85b8317 fix: avoid rapid polling while fetching teams in selector
  • fda1647 chore: lint cleanup
  • 585f7b4 chore: cleanup
  • 1821f65 fix: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/5485 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 10/16/2025 **Status:** ✅ Merged **Merged:** 10/22/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `fix/team-selector-poll-bug` --- ### 📝 Commits (4) - [`85b8317`](https://github.com/hoppscotch/hoppscotch/commit/85b83173fe610e6b007dcbd618673e1f1086f138) fix: avoid rapid polling while fetching teams in selector - [`fda1647`](https://github.com/hoppscotch/hoppscotch/commit/fda1647858df2c666ea150145dc9632e68719be2) chore: lint cleanup - [`585f7b4`](https://github.com/hoppscotch/hoppscotch/commit/585f7b4cacc0e8e6926460b2938de221ff6f0836) chore: cleanup - [`1821f65`](https://github.com/hoppscotch/hoppscotch/commit/1821f651d5eb07fcf224af39447a627be74937e4) fix: infinite loop bug when expanding collection ### 📊 Changes **7 files changed** (+55 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:42:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#5233
No description provided.