react-native-debugger icon indicating copy to clipboard operation
react-native-debugger copied to clipboard

`Preserve log` on Network tab doesn't save requests on app reload

Open vvscode opened this issue 4 years ago • 3 comments

First of all - thanks for what you're doing

I have version 0.11.3 for Mac (RN 0.62)

Putting this issue here, just because that Network request doesn't work for me at react-devtools at all.

It works fine. One thing I recently discovered - when I check Preserve log checkbox on Network tab, and reload the app - requests are not preserved

Video demonstration of the issue is here:

https://youtu.be/EC-aMOF0woo

vvscode avatar May 27 '20 09:05 vvscode

The Preserve log is for debugger page, so it doesn’t actually work for react-native app.

If you realize the network logs was cleared by reload app, this is feature from react-native-debugger.

I think we can make an option for keep logs, but it will be set in the config file.

jhen0409 avatar May 28 '20 05:05 jhen0409

@jhen0409 Thanks for your reply. I checked available options and don't see which config property can help me

I see that NODE_ENV can help https://github.com/jhen0409/react-native-debugger/blob/bac060d2d7d6d70e5cbfd0308ae39b983e8590c4/app/middlewares/debuggerAPI.js#L112

is that what you mean?

vvscode avatar May 28 '20 05:05 vvscode

@vvscode it's not implemented yet.

jhen0409 avatar May 28 '20 06:05 jhen0409