reactotron icon indicating copy to clipboard operation
reactotron copied to clipboard

No way to copy JSON from state

Open adrielklein opened this issue 6 years ago • 2 comments

image

In the above screenshot, I'm trying to copy the state slice for inAppMessages but there is no way to do it.

Please provide a way for developers to copy JSON from any slice of the state tree. Or at very lease, please provide a way to copy the entire state tree as JSON.

adrielklein avatar Jan 13 '20 14:01 adrielklein

This indeed is useful function. I'm facing the same situation, I will have to console.log in code.

wagnerpaz avatar Mar 05 '20 21:03 wagnerpaz

There is a way to do this. You can go to the state tab and under snapshots you can Add Backup (top right corner download looking button). This will generate a snapshot of the current state you have. You can click on the second from the left button, on the right side of the snapshot, to copy the state and put it into a JSON file.

zrefai avatar Jun 16 '20 18:06 zrefai