infinitered / infinitered/reactotron

problem with async Storage multiple connections after reload

Open
#1,211 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.6k
Forks
972
PR merge metrics
No merged PRs in 30d

Description

Whenever I re load my app a new connection is created (as if it were a different device).

Here is my Reactotron initial configuration:

```javascript
import {AsyncStorage} from '@react-native-async-storage/async-storage';
import Config from './Config/DebugConfig';

if (Config.useReactotron){
Reactotron
.setAsyncStorageHandler(AsyncStorage) // AsyncStorage would either come from `react-native` or `@react-native-community/async-storage` depending on where you get it from
.configure() // controls connection & communication settings
.useReactNative() // add all built-in react native plugins
.connect() // let's connect!
```

I can't figure out what is wrong

Contributor guide

Open the contributing guide

Research direction

Start with the Reactotron configuration shown in the report, especially setAsyncStorageHandler(AsyncStorage), configure(), and connect(). Reproduce the behavior by reloading the app and observe why a new connection is treated as a different device; done means reloads retain the expected connection identity without creating additional devices.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.