Time of current loading requests reset when switch to another request
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
## Expected Behavior
While loading request 1 and switch to request 2, when switch back to request 1 and keeps loading it must return the current time of loading.
## Actual Behavior
When switch back, it resets the time and start counting seconds again.
## Reproduction Steps
1. Do a http request within infinite timeout to response
2. While loading and time start to count, change to another request
3. Go back to the request of step 1
## Is there an existing issue for this?
- [x] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.
## System Info
Version: Insomnia 2023.1.0-beta.5
Build date: 03/03/2023
OS: Windows_NT x64 10.0.19044
Electron: 22.0.0
Node: 16.17.1
V8: 10.8.168.20-electron.0
Architecture: x64
Contributor guide
Research direction
Start by reproducing the request-tab switching sequence in Insomnia with a request that has an infinite timeout, then trace where the loading duration is tracked when switching requests. The issue is done when returning to an in-progress request preserves its elapsed loading time instead of restarting the counter.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript
- Domain
- api, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100