Whole UI disappears when switching between requests
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
### Expected Behavior
Being able to use the app
### Actual Behavior
Can't do anything other than restart the whole application to bring back the UI, only to face the same issue after ~5 clicks.
### Reproduction Steps
1. Open insomnia
2. Navigate to the collection with a few variables defined in the environment
3. Switch 3-5 times between different requests
### Is there an existing issue for this?
- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.
### Additional Information
The issue occurs only in the collection where I have a bunch of variables referencing each other in the base environment: JSONPath, simple variables, Response -> body attribute, and array item. I don't see this issue in the collection with just a single '_.ip' or '_.baseUrl' var.
This is how the problem looks like

Trying to import this collection to another insomnia instance gives the following error

### Insomnia Version
2022.7.0
### What operating system are you using?
Windows
### Operating System Version
Windows 10 Pro 21H2 OS build 19044.2364
### Installation method
download from insomnia.rest long time ago, updated to current version via insomnia app
### Last Known Working Insomnia version
_No response_
Contributor guide
Research direction
Start by reproducing the failure in Insomnia 2022.7.0 on Windows 10: open a collection with chained environment variables and switch between requests several times. Compare it with a collection containing only simple variables, and use the reported UI disappearance and collection import failure as the completion criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100