feat: active tab no longer resets after request (#2917)

Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
Closes https://github.com/hoppscotch/hoppscotch/issues/2080
This commit is contained in:
Jesvin Jose
2023-02-08 10:29:18 +05:30
committed by GitHub
parent ce0898956d
commit a227af05d9
6 changed files with 93 additions and 74 deletions

View File

@@ -1,10 +1,12 @@
import { HoppRESTRequest } from "@hoppscotch/data"
export type HoppRESTResponseHeader = { key: string; value: string }
export type HoppRESTResponse =
| { type: "loading"; req: HoppRESTRequest }
| {
type: "fail"
headers: { key: string; value: string }[]
headers: HoppRESTResponseHeader[]
body: ArrayBuffer
statusCode: number
@@ -27,7 +29,7 @@ export type HoppRESTResponse =
}
| {
type: "success"
headers: { key: string; value: string }[]
headers: HoppRESTResponseHeader[]
body: ArrayBuffer
statusCode: number
meta: {