infinitered / infinitered/reactotron

Reactotron.clear() not working

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

Description

I have implemented Reactotron and it logs but the clear() method does not work under any conditions.

```
Reactotron.setAsyncStorageHandler(AsyncStorage)
.configure() // controls connection & communication settings
.useReactNative() // add all built-in react native plugins
.use(
trackGlobalErrors({
veto: (frame) =>
frame.fileName.indexOf('/node_modules/react-native/') >= 0,
}),
)
.use(openInEditor())
.use(networking())
.connect(); // let's connect!
Reactotron.clear(); // not working
console.tron = Reactotron;
```

I also tried:

```
const App: () => React$Node = () => {
React.useEffect(() => {
Reactotron.clear();
}, []);

return (



);
};
```

Any time I hit CMD+R on the iOS simulator, it refreshes, Reactotron reconnects, new logs appear, but the old ones stay until i hit manually the button with the bin.

Using: `3.0.0-beta.9` Mac

Contributor guide

Open the contributing guide

Research direction

Start with the Reactotron.clear() entry point and the configure()/connect() sequence shown in the report, reproducing the behavior on the iOS simulator with 3.0.0-beta.9. Done means a reload and reconnect remove prior logs without pressing the desktop bin button; the issue does not name a source file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.