infinitered / infinitered/reactotron
Reactotron keeps adding new connections with Live Reload
- Dominant language
- TypeScript
- Stars
- 15.6k
- Forks
- 972
- PR merge metrics
- No merged PRs in 30d
Description
Enabling live reload in dev menu for a project keeps adding a new connections to reactotron without even clearing the old one. This is so annoying 😅and i don't know if it's supposed to be like that. It seems like a bug for me
## Screenshot

## Configuration
```js
.configure({ host: '192.168.1.20' })
.useReactNative({ overlay: false, })
.connect()
```
## Version
- Project: 3.7.1~4.0.1
- Application (Mac): 2.17.1
## Reproduction
Just connect your android device **(this happens only on android)**, enable live reload _(because hot reload sucks and doesn't work most of the time 😂)_. Now every time you save a change and it live reloads, reactotron will add a new connection.
## Expected Behavior
Reactotron stays in the same session, or at least if it has to create a new session, automatically switch to it and optionally remove the older one(s)
Contributor guide
Research direction
Reproduce with an Android device using the shown .configure, .useReactNative, and .connect setup, then save changes with Live Reload enabled and observe Reactotron's connections. Done means reloads keep one session, or automatically select a newly created session while removing older connections as specified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- desktop, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100