[PR #2915] [CLOSED] feat: active tab no longer resets after request #4140

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2915
Author: @aitchnyu
Created: 2/2/2023
Status: Closed

Base: mainHead: feat-2080


📝 Commits (3)

  • 910dfa5 feat: active tab no longer resets after request
  • c70eca1 chore: convert modified components to setup
  • cc647a6 chore: moved to localpersistence

📊 Changes

2 files changed (+66 additions, -66 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/http/Response.vue (+13 -24)
📝 packages/hoppscotch-common/src/components/lenses/ResponseBodyRenderer.vue (+53 -42)

📄 Description

Closes #2080

Description

When the ResponseBodyRenderer component renders for each request, the active tab (json, raw etc) is always set to the first one. Users prefer if same tab is persisted. So I moved tab preferences from ResponseBodyRenderer to parent so it loads with previously opened tab.

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information


🔄 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/2915 **Author:** [@aitchnyu](https://github.com/aitchnyu) **Created:** 2/2/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat-2080` --- ### 📝 Commits (3) - [`910dfa5`](https://github.com/hoppscotch/hoppscotch/commit/910dfa5bf6d372149ca2b418c895cad12e4fdc63) feat: active tab no longer resets after request - [`c70eca1`](https://github.com/hoppscotch/hoppscotch/commit/c70eca1d841a2a975e335bbd526dfcfecb07d52d) chore: convert modified components to setup - [`cc647a6`](https://github.com/hoppscotch/hoppscotch/commit/cc647a615e61cd24112cb8fa91df7e9b0cc96c8a) chore: moved to localpersistence ### 📊 Changes **2 files changed** (+66 additions, -66 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/http/Response.vue` (+13 -24) 📝 `packages/hoppscotch-common/src/components/lenses/ResponseBodyRenderer.vue` (+53 -42) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes #2080 ### Description <!-- Add a brief description of the pull request --> When the `ResponseBodyRenderer` component renders for each request, the active tab (json, raw etc) is always set to the first one. Users prefer if same tab is persisted. So I moved tab preferences from `ResponseBodyRenderer` to parent so it loads with previously opened tab. <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed ### Additional Information <!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behaviour, etc. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:42:05 +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#4140
No description provided.